5331: Deprecated http://gazetteer.openstreetmap.org/namefinder/
svn: r18369
This commit is contained in:
parent
effbde51a8
commit
e80cd823c8
@ -62,10 +62,10 @@ class OpensStreetMapService(MapService):
|
|||||||
city = place.get_main_location().get_city()
|
city = place.get_main_location().get_city()
|
||||||
country = place.get_main_location().get_country()
|
country = place.get_main_location().get_country()
|
||||||
if city and country:
|
if city and country:
|
||||||
self.url = "http://gazetteer.openstreetmap.org/namefinder/"\
|
self.url = "http://open.mapquestapi.com/nominatim/v1/"\
|
||||||
"?find=%s%%2C%s" % (city, country)
|
"search.php?q=%s%%2C%s" % (city, country)
|
||||||
return
|
return
|
||||||
|
|
||||||
titledescr = place.get_title()
|
titledescr = place.get_title()
|
||||||
self.url = "http://gazetteer.openstreetmap.org/namefinder/"\
|
self.url = "http://open.mapquestapi.com/nominatim/v1/"\
|
||||||
"?find=%s" % '+'.join(titledescr.split())
|
"search.php?q=%s" % '+'.join(titledescr.split())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user