-
Notifications
You must be signed in to change notification settings - Fork 1
ninowalker/OSM-Downloader
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Install
-------
sudo python setup.py install
Sample Commandline Usage
------------------------
# download 0.02 arc degree^2 tiles within ~2000 meters of a center lat/lng
osm_download -d /path/to/outputdir -c 37.743512,-122.419195 -r 2000 -s 0.02
# download 0.04 (default) arc degree^2 tiles within the lng,lat,lng,lat bounds
osm_download -d /path/to/outputdir -b 0,0,1,1
Sample API Usage
----------------
from osm_downloader import Downloader, Region
d = Downloader("/path/to/outdir", 60*60*24) # max age == 1 day
r = Region((0,0,1,1))
d.download(region, step=0.2) # get 0.2 arc degree ^2 tiles.
About
Dirt simple utility/API for downloading OSM XML data in tiles.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published