svn: r18368
This commit is contained in:
Jérôme Rapinat 2011-10-25 08:14:47 +00:00
parent 749d750c03
commit 62689d0879

View File

@ -62,10 +62,10 @@ class OpensStreetMapService(MapService):
city = place.get_main_location().get_city()
country = place.get_main_location().get_country()
if city and country:
self.url = "http://gazetteer.openstreetmap.org/namefinder/"\
"?find=%s%%2C%s" % (city, country)
self.url = "http://open.mapquestapi.com/nominatim/v1/"\
"search.php?q=%s%%2C%s" % (city, country)
return
titledescr = place.get_title()
self.url = "http://gazetteer.openstreetmap.org/namefinder/"\
"?find=%s" % '+'.join(titledescr.split())
self.url = "http://open.mapquestapi.com/nominatim/v1/"\
"search.php?q=%s" % '+'.join(titledescr.split())