Apologies if this is a dense question I am green with OSM. When I make an API bounding box call like below:
The output is not wrapped in a Python dictionary like here. The response appears to be xml. Anybody have an idea of what is going on here? Thanks in advance! |
Overpass API supports different file formats (currently XML, JSON and CSV). According to a quick search you seem to be using Overpass API python wrapper. The README explains that you can call I've seen that. Interestingly though, I keep getting the error
(16 Feb '16, 18:16)
jlgutenson
I just tried the example from the README with the latest version on GitHub and it works. It even uses "geojson" as default file format. But specifying
(16 Feb '16, 18:26)
scai ♦
Interesting @scai, are you using version 0.3.1 as well? Sounds like something with my installation is off.:-/
(16 Feb '16, 18:34)
jlgutenson
I'm using the master branch which seems to be 0.3.1 according to __init__.py.
(16 Feb '16, 18:35)
scai ♦
|
Turns out the pip installation of the Python Overpass API is different than the current version on github. If anyone else encounters this problem, just install the github version instead. |
crosspost: https://gis.stackexchange.com/questions/180980/openstreetmap-python-api-bounding-box-request