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

Handle or ignore postal code #2497

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

Handle or ignore postal code #2497

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

Comments

@openstreetmap-trac
Copy link

Reporter: ToB
[Submitted to the original trac issue database at 10.23am, Tuesday, 24th November 2009]

The namefinder should be able to handle postal codes - at least by ignoring them. Searching for "Neuprll 17 D-93051 Regensburg" at http://www.openstreetmap.org/ turns up no place, while taking out the - (namely "D-93051"), it finds the right spot:

"Results from OpenStreetMap Nominatim: [...] Residential Strae Neuprll, Stadtbezirk 13, Leoprechting, Regensburg, Regensburg, Stadt, Regierungsbezirk Oberpfalz, Free State of Bavaria, Bundesrepublik Deutschland" (http://www.openstreetmap.org/?minlon=12.0819911956787&minlat=48.9912605285645&maxlon=12.089280128479&maxlat=48.9921188354492)

Note: I do not know whether there was any postal code ("93051") around. I now added it to the Hotel there, which might or might not affect the reproducibility.

@openstreetmap-trac
Copy link
Author

Author: ToB
[Added to the original trac issue at 1.40pm, Tuesday, 24th November 2009]

Actually, I now realize that this might be in part the problem [http://trac.openstreetmap.org/ticket/2485 #2497], namely "Places only returned as exact matches". The other problem is that the country prefix for post codes is not supported.

If I search for "12205" it finds "Postcode 12205, Berlin, Bundesrepublik Deutschland" while for "D-12205" nothing is returned.

In any case, I find the new search very useful! It is rather fast and accurate!

@openstreetmap-trac
Copy link
Author

Author: stevie_
[Added to the original trac issue at 4.28pm, Wednesday, 29th May 2013]

Hey Twain,

Just wondering what the current status of this issue is?

Thanks!

@openstreetmap-trac
Copy link
Author

Author: lonvia
[Added to the original trac issue at 1.18pm, Friday, 23rd August 2013]

See also: #4964

@openstreetmap-trac
Copy link
Author

Author: andersg
[Added to the original trac issue at 11.13am, Wednesday, 17th September 2014]

Any news on this issue? Any ideas on how to fix it? Maybe some Good Samaritan is willing to help out if pointed in the right direction. ;-)

Edit: After digging around a bit I can see that all but country prefix is working quite well. The issue I have is related to postcodes only mapped on nodes using addr:postcode which don't turn up. Maybe they are not supposed to?

@openstreetmap-trac
Copy link
Author

Author: lonvia
[Added to the original trac issue at 2.30pm, Thursday, 16th October 2014]

Regarding addr:postcode on nodes: half the issue is fixed. When showing a result, the tag gets mixed into the result, so that the correct postcode is displayed. What is missing is that Nominatim needs to add the postcode in the search index of the streets they belong to or it won't be able to find addresses containing the postcode. There are some ideas how to do that (basically patching the search index for the street when a house number is found) but it is not clear yet what the performance impact is. So what needs to be done is to do the implementation, add some test-cases to make sure it works as expected and then test the performance impact on some smaller excerpts. If that goes well, I can help out with performance tests on a planet file.

The other issue is that postcodes themselves must be found. Nominatim currently computes centroids over all addr:postcode in the DB and returns these centroids. Problem is that this is naturally a very expensive operation and so the centroids don't get updated and postcodes go stale with time. How to proceed on this issue is less clear. Efficient updates might need a different approach to these postcode centroids than we have today.

If a Good Samaritarian would want to work one any of those two problems, I would recommend they join the IRC channel #osm-nominatim for a more in-depth discussion.

@openstreetmap-trac
Copy link
Author

Author: lonvia
[Added to the original trac issue at 7.47pm, Friday, 8th May 2015]

addr:postcodes from addresses are now propagated back into the search index of the street.

Remains the update of postcode centroids.

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