Skip to content
This repository was archived by the owner on Jun 10, 2025. It is now read-only.

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

Merged
merged 1 commit into from
Mar 2, 2021

Conversation

russbiggs
Copy link
Contributor

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.

@mvexel mvexel merged commit 32281d2 into mvexel:master Mar 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants