Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

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

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 5 comments

Comments

@openstreetmap-trac
Copy link

Reporter: capellsk
[Submitted to the original trac issue database at 4.41am, Sunday, 10th January 2016]

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

@openstreetmap-trac
Copy link
Author

Author: capellsk
[Added to the original trac issue at 4.12am, Thursday, 14th January 2016]

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.

@openstreetmap-trac
Copy link
Author

Author: capellsk
[Added to the original trac issue at 4.35am, Thursday, 14th January 2016]

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

@openstreetmap-trac
Copy link
Author

Author: capellsk
[Added to the original trac issue at 5.08am, Thursday, 14th January 2016]

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

@openstreetmap-trac
Copy link
Author

Author: capellsk
[Added to the original trac issue at 5.20am, Thursday, 14th January 2016]

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

@openstreetmap-trac
Copy link
Author

Author: capellsk
[Added to the original trac issue at 5.22am, Thursday, 14th January 2016]

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant