Closed Lioxen closed 11 years ago
Hi Lioxen,
If you open this url http://nominatim.openstreetmap.org/
in your browser you can test those 2 addresses Erfurt, Rubensstraße
and Rubensstraße, Erfurt
. The first do not show its localisation but the second does.
So, it's not a Geocoder issue. Hope it helps.
thanks toin0u for your reply. I checked your provided URLs, only with Opera I did not get a result on the first URL. With Firefox (Linux and Windows), Safari (Windows) and IE8 I got a result with both URLs. Even if it is a Openstreetmap problem, this is strange, but it explains why I get a result when I try the URL from the exception.
It's pretty weird because no result should be returned with the first URL... I've tried in Safari, Firefox, Chrone, Canary, Chromium and Opera in my mac..
I think we can close this issue because it's not a Geocoder issue.
@willdurand WDYT ?
you're right
@Lioxen It's not a solution but it works with Google provider.
I have a strange issue with OpenStreetView. If I look for "city, street" I will get a exception, but if I look for "street, city" I get a result. But this happens only with small streets. Strange is, if I copy the URL from the exception into my browser, there is a result. Eg. If I look for "Erfurt, Rubensstraße" I will get the exception:
Fatal error: Uncaught exception 'Geocoder\Exception\NoResultException' with message 'Could not execute query http://nominatim.openstreetmap.org/search?q=Deutschland%2C+Erfurt%2C+Rubensstra%C3%9Fe&format=xml&addressdetails=1&limit=1' in /home/www/html/develope/liox/mbb/sys/lib/Geocoder/src/Geocoder/Provider/OpenStreetMapsProvider.php:61 Stack trace: #0 /home/www/html/develope/liox/mbb/sys/lib/Geocoder/src/Geocoder/Geocoder.php(70): Geocoder\Provider\OpenStreetMapsProvider->getGeocodedData('Deutschland, Er...') #1 /home/www/html/develope/liox/mbb/modul/es_journey_planner/frontend/es_journey_planner.class.inc.php(92): Geocoder\Geocoder->geocode('Deutschland, Er...') #2 /home/www/html/develope/liox/mbb/modul/es_journey_planner/frontend/es_journey_planner.class.inc.php(42): es_journey_planner_class->es_searchResult() #3 /home/www/html/develope/liox/mbb/sys/classes/content.class.inc.php(678): es_journey_planner_class->main(Array) #4 /home/www/html/develope/liox/mbb/sys/classes/content.class.inc.php(72): content_class->drawConte in /home/www/html/develope/liox/mbb/sys/lib/Geocoder/src/Geocoder/Provider/OpenStreetMapsProvider.php on line 61
If I put the URL http://nominatim.openstreetmap.org/search?q=Deutschland%2C+Erfurt%2C+Rubensstra%C3%9Fe&format=xml&addressdetails=1&limit=1 direct in my browsers address bar or swap the items and look for "Rubensstraße, Erfurt" I will get a result. May it's an issue with openstreetmap. Perhaps someone with a deeper experience with Geocoder can put me in the right direction to solve this issue.