From 62689d0879854be1e09bda7752e868c2054fd87a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Tue, 25 Oct 2011 08:14:47 +0000 Subject: [PATCH] 5331: Deprecated http://gazetteer.openstreetmap.org/namefinder/ svn: r18368 --- src/plugins/mapservices/openstreetmap.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/mapservices/openstreetmap.py b/src/plugins/mapservices/openstreetmap.py index b28b67ad5..f9430f278 100644 --- a/src/plugins/mapservices/openstreetmap.py +++ b/src/plugins/mapservices/openstreetmap.py @@ -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())