mvexel / overpass-api-python-wrapper

Python bindings for the OpenStreetMap Overpass API
Apache License 2.0
367 stars 90 forks source link

examples? #37

Closed mvexel closed 8 years ago

mvexel commented 8 years ago

I started a simple Django example app leveraging the Overpass API wrapper. See https://github.com/mvexel/overpass-api-python-wrapper/tree/example. It would be nice to have some more?

mmd-osm commented 8 years ago

Don't want to create an issue on its own, as it's fairly obvious. The following example in README.md lacks some " around Highway 51 (otherwise you'll get a syntax error back from Overpass API).

>>> way_query = overpass.WayQuery('[name=Highway 51]')
>>> response = api.Get(way_query)

should read:

>>> way_query = overpass.WayQuery('[name="Highway 51"]')
>>> response = api.Get(way_query)
mmd-osm commented 8 years ago

Found this one example request on help osm page: https://help.openstreetmap.org/questions/47075/overpass-api-python-save-tags

mvexel commented 8 years ago

Merged #42 and #44