Comments (6)
I want to auto-complete the profile of a user. The user has to do a registration and I want to keep it simple. Canton is something that I can "compute", so I don't want to ask the user for it.
from php-swiss-cantons.
Great idea, but then the package would have to ship with a complete "Database" containing all Swiss Zipcodes (there are currently 4250 zipcodes).
Or we could try to use this pattern.
from php-swiss-cantons.
I think it's not possible to avoid storing a mapping table in the package, because there is no pattern in it.
Please have a look at that dataset: http://www.bfs.admin.ch/bfs/portal/de/index/infothek/nomenklaturen/blank/blank/gem_liste/04.html
1290 => GE
1291 => VD
1292 => GE
from php-swiss-cantons.
Thanks for the link. I will see what I can do. If you have already an idea, on how to implement this: PRs are always welcome :)
from php-swiss-cantons.
Just a quick follow-up question: Can you describe in which scenario / context you're going to use this feature?
from php-swiss-cantons.
I just merged my PR and tagged a new release.
from php-swiss-cantons.
Related Issues (9)
- Lowercase abbreviations throws error
- Throws exception if passed zipcode is not an integer
- Fribourg should be Fribourg in english HOT 1
- Zip-code 9496 isn't swiss HOT 11
- Zip-code 2400 is duplicated
- Keep Zipcode Dataset automatically up to date HOT 4
- Zipcodes 8060 and 7001 not found in data files HOT 4
- Zipcode and Canton is not a One-to-One relationship HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-swiss-cantons.