Coder Social home page Coder Social logo

Comments (10)

Beee4life avatar Beee4life commented on September 27, 2024

The plugin is tailored to 2 digit state abbreviation, according to the international standard (not sure if I use the correct terminology).

from acf-city-selector.

lanceadam avatar lanceadam commented on September 27, 2024

Thanks for the reply, please check here: https://en.m.wikipedia.org/wiki/ISO_3166-2

Specifically this text:

The first part is the ISO 3166-1 alpha-2 code of the country;

The second part is a string of up to three alphanumeric characters, which is usually obtained from national sources and stems from coding systems already in use in the country concerned, but may also be developed by the ISO itself.

from acf-city-selector.

lanceadam avatar lanceadam commented on September 27, 2024

ISO standard stipulation the regional/state code can be made up of 3 characters. Surely it is an easy enough fix to allow 3 characters to make this plugin internationally supported to standards.

from acf-city-selector.

lanceadam avatar lanceadam commented on September 27, 2024

Here are two examples of the ISO 3166-2 where there is a two digit country code, followed by a 3 digit region/state code:

https://en.m.wikipedia.org/wiki/States_and_territories_of_Australia
https://en.m.wikipedia.org/wiki/ISO_3166-2:GB

from acf-city-selector.

Beee4life avatar Beee4life commented on September 27, 2024

Well, it's built for 2 chars for state length, so that's why stuff goes wrong...
I will add it to my todo list, but no promises on eta.
Have several things I wanna try and implement

from acf-city-selector.

Beee4life avatar Beee4life commented on September 27, 2024

FYI: I'm planning to release a new version this weekend, which i had been working on for a while (see pull requests). I will not incorporate your request yet, but I will promise to add it to the version after.

from acf-city-selector.

Beee4life avatar Beee4life commented on September 27, 2024

@lanceadam if you're from AUS you might be able to help me out. Working on the next version with 3 char for states and I'm creating a csv for Australia, but missing a handful of states for some cities.

Maybe you can fill in the blanks.

from acf-city-selector.

Beee4life avatar Beee4life commented on September 27, 2024

The latest version allows for a 3 character state abbreviation.

Since that was the original question, closing this topic.

from acf-city-selector.

lanceadam avatar lanceadam commented on September 27, 2024

@Beee4life I'm happy to help, where can I find the file and missing states?

from acf-city-selector.

Beee4life avatar Beee4life commented on September 27, 2024

Will make them available somewhere in the next few days.

from acf-city-selector.

Related Issues (20)

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.