DinoTools / python-overpy

Python Wrapper to access the Overpass API
https://python-overpy.readthedocs.io/
MIT License
235 stars 58 forks source link

Is there a possibility to query a local Overpass db? #73

Closed Erhanjinn closed 4 years ago

Erhanjinn commented 6 years ago

Hi,

is there a possibility to query a local .osm copy of data? Can I make the Overpass API to switch to local db?

Thanks!

phibos commented 6 years ago

You can use the url parameter of the Overpass class.

api = overpy.Overpass(url='http://my-local-overpass.localhost/api/interpreter')
phibos commented 4 years ago

Seems like the question has been answered. Issue closed.