Opened 4 years ago

Closed 4 years ago

#5378 closed defect (invalid)

The city of Essaouira in Morocco is wrong in reverse geocoding requests.

Reported by: capellsk Owned by: geocoding@…
Priority: minor Milestone:
Component: nominatim Version:
Keywords: Cc:

Description

If you do a reverse geocoding request anywhere within the city of Essaouira, Morocco, the city returned is "Essaouira Province", which is incorrect. Here is an example query:

http://nominatim.openstreetmap.org/reverse?format=json&lat=31.515385367385335&lon=-9.772137753648309&addressdetails=1

That query returns the node with ID 3222892365. If we look that up using OSM we see that the city is correctly shown as "Essaouira":

http://api.openstreetmap.org/api/0.6/node/3222892365

Change History (5)

comment:1 Changed 4 years ago by capellsk

This problem also afflicts the search query:

http://nominatim.openstreetmap.org/search?city=Essaouira&addressdetails=1

Notice that the query returns two cities: Essaouira and Essaouira Province. The latter seems to be spurious.

comment:2 Changed 4 years ago by capellsk

The relation #2821038 being tagged as admin_level=8 is the culprit. According to this page admin_level 8 is meant for cities in Morocco:

http://wiki.openstreetmap.org/wiki/Tag:boundary%3Dadministrative#admin_level

comment:3 Changed 4 years ago by capellsk

This issue has nothing to do with Nominatim. It's a mapping error.

comment:4 Changed 4 years ago by capellsk

I changed name:en on relation #2821038 from "Essaouira Province" to "Essaouira", which seems to be the appropriate change.

comment:5 Changed 4 years ago by capellsk

Resolution: invalid
Status: newclosed

I resolved this as invalid since it was a simple mapping problem.

Note: See TracTickets for help on using tickets.