get_bbox | R Documentation |
Converts a string of latitudes and longitudes into a square matrix to be
passed as a bbox
argument (to extract_osm_objects
,
osm_basemap
, or make_osm_map
).
get_bbox(latlon)
latlon |
A vector of (longitude, latitude, longitude, latitude) values. |
A 2-by-2 matrix of 4 elements with columns of min and max values, and rows of x and y values.
Other data-extraction:
connect_highways()
,
extract_osm_objects()
bbox <- get_bbox (c (-0.15, 51.5, -0.1, 51.52))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.