mvexel / overpass-api-python-wrapper

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

Error when I ask a way by its ID #102

Closed fbroussais closed 6 years ago

fbroussais commented 6 years ago

Hello,

I ask this simple query :

response = api.get("way(229416587)", responseformat="geojson")

And I get the error : UnboundLocalError: local variable 'geometry' referenced before assignment I get the same error with responseformat="xml", but no error with "json" (and I receive the good data).

Do I make a mistake ?

mvexel commented 6 years ago

I tried the exact same query just now and it worked just fine. Can you try again?

mvexel commented 6 years ago

Perhaps this was an error related to an older version. I am going to close this assuming that was the case, but feel free to re-open if I misunderstood your issue.

fbroussais commented 6 years ago

Sorry I had no time to test. I'll reopen if necessary. Thank you !