Skip to content

Instantly share code, notes, and snippets.

@pdbartsch
Last active December 15, 2015 12:09
Show Gist options
  • Save pdbartsch/5258017 to your computer and use it in GitHub Desktop.
Save pdbartsch/5258017 to your computer and use it in GitHub Desktop.
Grab data from OpenStreetMap . Some specific examples that I reuse.
#key = building
wget -O goleta_buildings.osm http://overpass.osm.rambler.ru/cgi/xapi?way[building=yes][bbox=-119.919272,34.401164,-119.802431,34.44535][@meta]
#grabs points
#amenity = school
wget -O SBco_schools.osm http://overpass.osm.rambler.ru/cgi/xapi?node[amenity=school][bbox=-120.701335,34.369261,-119.418620,35.176881][@meta]
#grabs lines and points
#building = school
wget -O SBco_schools_pline.osm http://overpass.osm.rambler.ru/cgi/xapi?way[building=school][bbox=-120.701335,34.369261,-119.418620,35.176881][@meta]
#grabs points
#leisure = park
wget -O SBco_LeisurePark.osm http://overpass.osm.rambler.ru/cgi/xapi?node[leisure=park][bbox=-120.701335,34.369261,-119.418620,35.176881][@meta]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment