Description Usage Arguments Value Functions See Also
Downloads OSM data from an Overpass API server and reads it into an osmar
object.
1 2 3 | get_osm_bbox(xmin, xmax, ymin, ymax, server = "https://overpass-api.de")
get_osm_file(file)
|
xmin |
Numeric. Minimum longitude |
xmax |
Numeric. Maximum longitude |
ymin |
Numeric. Minimum latitude |
ymax |
Numeric. Maximum latitude |
server |
Character. Hostname of an Overpass API server Defaults to https://overpass-api.de although you may specify a different hostname. |
file |
Filepath for an OSM XML file |
An osmar
object.
get_osm_file
: Read in OSM data from an XML file. get_osm_bbox()
calls this function once it downloads the raw XML file.
osmsource_api()
which implements the same function but has stricter controls on the size that can be downloaded.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.