download-osm Command
Downloads OSM data from OSM XAPI 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: XAPI 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
[bounds=<bounds>]
[xapi-url=<download url>]
Parameters:
- bounds: optionally specifies the exact map bounds for the area to be downloaed in the minlng,minlat,maxlng,maxlat format. If this parameter is not specified, the current map view bounds will be used.
- xapi-url: (optional) URL of the XAPI web service. You need to specify the URL in the full format (including thehttp:// part). If not specified, XAPI server hosted on www.informationfreeway.org will be used.
Examples
download-osm bounds=20,30,50,40
Downloads OSM data for the specific area.
download-osm
Downloads OSM data for the current map view bounds.
download-osm xapi-url="http://www.informationfreeway.org/api/0.6/*"
Downloads OSM data for the current map view bounds using explicitly set XAPI URL.