mvexel / overpass-api-python-wrapper

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

Example code in readme broken #85

Closed scruss closed 6 years ago

scruss commented 6 years ago

When I try

print( [(feature['tags']['name'], feature['id']) for feature in response['elements']] )

I get the error

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
KeyError: 'elements'

This works, though:

print( [(feature['properties']['name'], feature['id']) for feature in response['features']] )
mvexel commented 6 years ago

The readme was fixed. Thanks for reporting.