When searching for Dubai
in the website, it's returning a list with the city of Dubai
at the top, so I guess the importance of the city in the United Arab Emirates, is the highest.
When doing a search request to the Nominatim OSM search API, I'm getting Uganda as the country with the highest priority, which is not right.
These are the results of the API call for https://nominatim.openstreetmap.org/search?q=Dubai&format=json
[
{
"place_id": "226938824",
"licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://www.openstreetmap.org/copyright",
"osm_type": "node",
"osm_id": "5404871640",
"boundingbox": [
"2.9270179",
"2.9670179",
"30.941206",
"30.981206"
],
"lat": "2.9470179",
"lon": "30.961206",
"display_name": "Dubai, Arua, Northern Region, Uganda",
"class": "place",
"type": "village",
"importance": 0.17875,
"icon": "https://nominatim.openstreetmap.org/images/mapicons/poi_place_village.p.20.png"
},
{
"place_id": "16284768",
"licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://www.openstreetmap.org/copyright",
"osm_type": "node",
"osm_id": "1404229008",
"boundingbox": [
"2.78168",
"2.82168",
"44.06159",
"44.10159"
],
"lat": "2.80168",
"lon": "44.08159",
"display_name": "Dubai, Buurhakaba بورحكب, Buur Hakaba بورحكب, Bay باي, Soomaaliya الصومال",
"class": "place",
"type": "suburb",
"importance": 0.1725,
"icon": "https://nominatim.openstreetmap.org/images/mapicons/poi_place_village.p.20.png"
},
[...]
]
And this is the wesbite results for Dubai
as search parameter.
There is something clearly wrong with my request or the server because Dubai in UAE should have the highest priority always, unless you are searching from Uganda.
asked
13 Feb '18, 10:09
octohedron
11●1●1●3
accept rate:
0%
Please do not waste everybodies time by asking the same question in multiple places at the same time.
@SimonPoole: please add a link for people finding this question here.
See https://github.com/openstreetmap/Nominatim/issues/916