mvexel / overpass-api-python-wrapper

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

support non-geo queries #71

Closed mvexel closed 7 years ago

mvexel commented 7 years ago

I have some use cases that call for output that is not spatial (just relation ids and their tags and metadata).

Looking into supporting this, how do you think this would work best? Options I can think of:

1) separate method 2) parameter passed into Get() method 3) automatic discovery

First would be easiest to implement, going to start a little prototyping based on that option, but please weigh in on how this should be implemented

mvexel commented 7 years ago

I forgot that this is already supported :)

example:

api.Get('relation(12345)', responseformat='csv(::id)')