download-osm-overpass Command
Downloads OSM data from http://wiki.openstreetmap.org/wiki/Overpass_API servers.
Once downloaded, the map data is stored in memory, so you'll need to save it on the disk (using SaveSource (TODO)) if you want to use it later.
NOTE: Overpass API servers can be unresponsive at certain times, so you should retry the downloading if it fails. Also try not to download too big an area as it could take a very long time to download from the server.
Usage
download-osm-overpass
[bounds=<bounds>]
[query=<query string>]
[service-url=<Overpass API URL>]
Parameters:
- bounds: optionally specifies the exact geometry bounds for the area to be downloaded in the minlng,minlat,maxlng,maxlat format. If this parameter is not specified, the current map view bounds will be used.
- query: (optional) Overpass API query string. You should use "$b$" string (without quotes) as a bbox placeholder in the query.
- service-url: (optional) URL of the Overpass API web service. You need to specify the URL in the full format (including thehttp:// part).
Examples
download-osm-overpass bounds=20,30,50,40
Downloads OSM data for the specific area.
download-osm-overpass
Downloads OSM data for the current map view bounds.