mvexel / overpass-api-python-wrapper

Python bindings for the OpenStreetMap Overpass API
Apache License 2.0
359 stars 89 forks source link

specify bbox in query #123

Open wendellwt opened 4 years ago

wendellwt commented 4 years ago

I want to specify one bounding box when specifying a query, not on each line. Neither 'build' option seemed to work (true/false), because both TEMPLATE variables began with '[out:whatever];', and from what I understand about OverpassQL, the bounding box must appear before the first ';'.

I edited api.py to insert an optional bbox spec in the template. The 'git diff' is attached. api.py_diff.txt