DinoTools / python-overpy

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

Add an option for overpass.osm.rambler.ru #23

Closed Virtakuono closed 9 years ago

Virtakuono commented 9 years ago

Since the primary overpass instance has been down for some time now, I made a workaround to use overpass.osm.rambler.ru that still seems to be online

phibos commented 9 years ago

Thanks for your contribution but there is no need to add an additional hardcoded value for the url. Just set the url variable of the Overpass() class to your preferred server as shown in the example below.

import overpy
api = overpy.Overpass()
api.url = "http://overpass.osm.rambler.ru/cgi/interpreter"

result = api.query("... your query ...")