mvexel / overpass-api-python-wrapper

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

[Help Wanted] Complex query creation #104

Closed AlexAslan closed 5 years ago

AlexAslan commented 5 years ago

Right now I have built the query below, which fetches all child relations based on a country:

http://overpass-api.de/api/interpreter?data= [out:json][timeout:90]; area(3600192307)->.searchArea; ( node"boundary"="administrative"; way"boundary"="administrative"; relation"boundary"="administrative"; ); out body;

; out skel qt;

Could it be possible to send it via the module somehow?

mvexel commented 5 years ago

It looks like a very heavy query to me, but you could pass it as a raw query using build=False as a parameter to the get() method.

AlexAslan commented 5 years ago

Thanks for the quick reply @mvexel. I checked it out and it works great