Coder Social home page Coder Social logo

Comments (6)

wittwerch avatar wittwerch commented on June 5, 2024 1

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.

stefanzweifel avatar stefanzweifel commented on June 5, 2024

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.

wittwerch avatar wittwerch commented on June 5, 2024

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

Example from the dataset
image

1290 => GE
1291 => VD
1292 => GE

from php-swiss-cantons.

stefanzweifel avatar stefanzweifel commented on June 5, 2024

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.

stefanzweifel avatar stefanzweifel commented on June 5, 2024

Just a quick follow-up question: Can you describe in which scenario / context you're going to use this feature?

from php-swiss-cantons.

stefanzweifel avatar stefanzweifel commented on June 5, 2024

I just merged my PR and tagged a new release.

from php-swiss-cantons.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.