mvexel / overpass-api-python-wrapper

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

Include nodes, user, uid, timestamp, and version in GeoJSON properties #130

Closed russbiggs closed 3 years ago

russbiggs commented 3 years ago

Currently verbosity parameter does not return additional properties in the GeoJSON output, so the following statements all return the same output:

api.get('way(696160849)', verbosity='tags')
api.get('way(696160849)', verbosity='body')
api.get('way(696160849)', verbosity='meta')

This PR puts the nodes, timestamp, user, uid, version into the GeoJSON properties object if they exist in the response data.

I've also updated the test example.json to match the changes. Happy to add an additional test for the full meta level if that is helpful.