Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nederlands - 4 digit postcodes not found #1009

Closed
bijdepinkenzijn opened this issue Apr 9, 2018 · 2 comments
Closed

Nederlands - 4 digit postcodes not found #1009

bijdepinkenzijn opened this issue Apr 9, 2018 · 2 comments

Comments

@bijdepinkenzijn
Copy link

@lonvia We started a foundation in our evenings/weekends to connect elderly people to one another (www.leukeluitjes.nl). We use the Nominatim API for a script to match (lonely) elderly people to other (lonely) elderly people based on their zip code. Up until a week ago all worked fine, we love it and we received a lot of great positive responses from elderly people!!
But now it doesn't work anymore and we receive error messages for zipcode city combinations that worked before, did anything change in the API recently? (e.g. "1964 Heemskerk could not be located")
It would be great if we could get your feedback, thanks for your great work!

@mtmail
Copy link
Collaborator

mtmail commented Apr 9, 2018

Lovely service.

I believe the OpenStreetMap data changed. In my database I find 3725 addresses with 1964XX (6 character) postcodes. What Nominatim does is group the same postcodes and calculate a center point. What it should for Nederlands is (also) look for the first 4 characters only and calculate a center point. I think at some point in the past, or until recently, there was an address in the OpenStreetMap data with a postcode of 1964 (4 characters). Now arguably the data improved and Nominatim needs to change its logic.

Is all you need a mapping of 4 character postcode to a name and latitude,longitude? You can have a look at http://download.geonames.org/export/zip/ (NL.zip of course) in the meantime. It's far less than one megabyte and would save you API requests.

@mtmail mtmail changed the title Nominatim change in API? Nederlands - 4 digit postcodes not found Apr 9, 2018
@lonvia
Copy link
Member

lonvia commented Apr 10, 2018

Nothing has changed in Nominatim with regard to these postcodes, so I guess somebody has cleaned up addresses in the Netherlands in OpenStreetMap. As @mtmail says, deriving a 4-digit postcode from the 6-digit postcode available in OSM would be a new feature. I've opened a new ticket #1011 to describe the issue a bit more detailed from the developer's point of view. Closing this ticket.

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

No branches or pull requests

3 participants