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

Missing NPA #152

Open
dayrontbs12001 opened this issue Jul 23, 2021 · 2 comments
Open

Missing NPA #152

dayrontbs12001 opened this issue Jul 23, 2021 · 2 comments

Comments

@dayrontbs12001
Copy link

Multiple NPAs are missing. Here's a short list of examples:

1701 Sarine, Fribourg
1705 Sarine, Fribourg
6281 Hochdorf, Lucerne
4901 Oberaargau, Bern
1001 Lausanne, Vaud

Can we update the library to include the most recent NPA list?

@stefanzweifel
Copy link
Owner

@dayrontbs12001 Feel free to submit a PR for this. Will do some investigation on how we could keep the data up to date automatically.

@stefanzweifel
Copy link
Owner

Sorry for the late reply / follow-up.

The problem here is that the original dataset was coming from https://www.cadastre.ch/.
They no longer have a downloadable dataset with all zipcodes for Switzerland.

The sister project php-swiss-cantons also had this "update" problem. I created a new major version earlier this year, which now takes the data from the Swiss Post. That package also has a CLI command to keep the dataset up to date.

Writting CLIs in Node.js is not my strength, but I will try to add a CLI to this project over the next few weeks; similar to the one in the PHP version. The CLI will then use the data from the Swiss Post.

However, this update will not solve all problems, as not all mentioned NPAs will be there in the new dataset. For example 1701 and 1705 Sarine will not be added, as "Sarine" is a river and not a village/city.

Will keep you posted.

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