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

Availability of postal codes for location search #8

Open
min7-i opened this issue Jun 22, 2023 · 2 comments
Open

Availability of postal codes for location search #8

min7-i opened this issue Jun 22, 2023 · 2 comments

Comments

@min7-i
Copy link

min7-i commented Jun 22, 2023

I noticed that adding the additional postal database from geonames is mentioned as a todo item here on the project page, however, below in the installation instructions the download of the postal codes is included. So, I wondered if that feature is available already.

When searching for German cities I often don't find any results when using postal codes, such as 10115 (Berlin) or 60310 (Frankfurt am Main).

Looking at the JSON that is returned from the Geocoding API when searching for Berlin I currently only get two postal codes, but there should be a lot more.
grafik

@patrick-zippenfenig
Copy link
Member

The "Geonames" data source stores postal codes in two ways:

  • As alternative names, similar to how translations are handled.
  • In a separate CSV file (specifically for postal code search on Geonames)

Currently, only the first data source is being used.

For the second data source, there is no direct connection between postal codes and Geonames IDs. It requires a process to match arbitrary names to Geonames IDs and then integrate them into the system. Simply comparing location names is not sufficient because location names are not unique. Matching administrative classes and coordinates is also necessary.

@min7-i
Copy link
Author

min7-i commented Jun 25, 2023

I see. Thanks for the quick reply and the explanation.

That sounds like quite a lot of thought and effort has to be put into this. It's a shame that there isn't an easier way to get reliable matches between both sources.

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

2 participants