| bing_static_map | R Documentation | 
See the documentation on Bing Static Maps for reference: https://docs.microsoft.com/en-us/bingmaps/rest-services/imagery/get-a-static-map
req_bingmapr(
  location = NULL,
  query = NULL,
  imagery = "BirdsEye",
  width = 600,
  height = 400,
  mapsize = NULL,
  zoom = 18,
  orientation = 0,
  nudge = NULL,
  key = Sys.getenv("BING_MAPS_API_KEY"),
  check = FALSE,
  .perform = TRUE,
  ...
)
get_request_url(...)
get_map_image(
  location = NULL,
  query = NULL,
  imagery = "BirdsEye",
  width = 600,
  height = 400,
  mapsize = NULL,
  zoom = 18,
  orientation = 0,
  nudge = NULL,
  key = Sys.getenv("BING_MAPS_API_KEY"),
  check = TRUE,
  strip = TRUE
)
get_map_meta(
  location = NULL,
  query = NULL,
  imagery = "BirdsEye",
  width = 600,
  height = 400,
  mapsize = NULL,
  zoom = 18,
  orientation = 0,
  nudge = NULL,
  key = Sys.getenv("BING_MAPS_API_KEY"),
  bbox = FALSE
)
| location | A  | 
| query | String with query for location. query is ignored if a location
is provided.  Defaults to  | 
| imagery | String with imagery type, Default: 'BirdsEye' Supported values include: 
 | 
| width,height,mapsize | Width and height in pixels or use mapsize to
provide a vector of c(width, height). If mapsize is provided, width and
height are ignored. Default: 600px width, 400px height, mapsize is  | 
| zoom | Numeric vector between 0 and 20 for imagery other than Bird's Eye maps or 18 to 22 for Bird's Eye maps. Default: 18 | 
| orientation | Orientation as a character string ("N", "E", "S", "W") or length 1 numeric vector (0,90,180,270). Other numeric orientations (from -360 to 720) are matched to the closest value, e.g. 35 to 0 or 75 to 90. Default: 0 | 
| nudge | Numeric vector in the format,  | 
| key | Bing Maps API Key, Default:  | 
| check | If  | 
| .perform | If  | 
| ... | Additional parameters passed to  | 
| strip | drop image comments and metadata | 
| bbox | If  | 
Get API key from https://www.bingmapsportal.com/
get_request_url returns the request URL for the Static Map API
get_map_image returns an image from magick::image_read
get_map_meta returns the JSON with the map metadata or a bbox for the map area
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.