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

Reverse geocoding wrong state #4995

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

Reverse geocoding wrong state #4995

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

Comments

@openstreetmap-trac
Copy link

Reporter: emilio.mejia[at]gmail.com
[Submitted to the original trac issue database at 9.20am, Wednesday, 25th September 2013]

On my local server the xml result query show wrong state.

Tested:

http://nominatim.openstreetmap.org/reverse?format=xml&lat=10.3116016666667&lon=-84.1814116666667&zoom=18&addressdetails=1

Result: (OK) Alajuela

On my local installation:

http://192.168.1.117/nominatim/reverse?format=xml&lat=10.3116016666667&lon=-84.1814116666667&zoom=18&addressdetails=1

Result: (Wrong) Heredia

The local server is update to : Data: 2013/09/25 19:13 GMT

I need to make some additional changes to my server or in osm?

@openstreetmap-trac
Copy link
Author

Author: lonvia
[Added to the original trac issue at 7.12am, Thursday, 26th September 2013]

If it works on osm.org, there should be no changes necessary but hard to say without knowing more about your installation. Are you using extracts and updates from Geofabrik or a full planet?

If you use the 2.0 version of Nominatim, you should do a reimport with the latest code from github.

@openstreetmap-trac
Copy link
Author

Author: emilio.mejia[at]gmail.com
[Added to the original trac issue at 1.00pm, Thursday, 26th September 2013]

I use the lastest code from gtihub and extracts updates from Geofabrik with central-america-latest.osm.pbf.
Check on http://192.168.1.117/nominatim/search.php?q=Alajuela and the boundary no exist, how to import boundary ?

@openstreetmap-trac
Copy link
Author

Author: lonvia
[Added to the original trac issue at 1.25pm, Thursday, 26th September 2013]

You can add a single relation with the update script by doing something like:

./utils/update.php --import-relation 3222933 --index

The boundary was published in the diff of [http://download.geofabrik.de/central-america-updates/000/000/199.osc.gz Sept 22nd], so it should be there. Could you confirm that the diff was imported without errors?

@openstreetmap-trac
Copy link
Author

Author: emilio.mejia[at]gmail.com
[Added to the original trac issue at 6.27pm, Thursday, 26th September 2013]

The diff was imported without error.
I did another install Nominatim server downloading of Geofabrik today however the problem persists even importing the relations (7) of the admin_level 4.
In the new server install also wikipedia data and result is same, wrong state and boundary do not appear in the query local wiki.

@openstreetmap-trac
Copy link
Author

Author: lonvia
[Added to the original trac issue at 6.53pm, Thursday, 26th September 2013]

The relation was broken, it did contain one of the boundary ways twice. After [http://www.openstreetmap.org/browse/changeset/18050009 fixing that], the relation imports fine. The osm.org instance happened to import one of the intermediate versions that was ok. Check the other relations for similar duplicates.

@openstreetmap-trac
Copy link
Author

Author: emilio.mejia[at]gmail.com
[Added to the original trac issue at 7.07pm, Thursday, 26th September 2013]

Perfect!!!
Works!
Tks!

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