GithubHelp home page GithubHelp logo

Comments (2)

benkeen avatar benkeen commented on June 2, 2024

Hey @yabdab! No, I'm afraid UK won't work. The script needs unique identifiers for each country to know what country is being specified. Those country string are defined in the countryShortCode values in this file:
https://github.com/benkeen/country-region-data/blob/master/data.json#L17198-L17201

So GB is the one you need to use for the UK. That's the ISO-3166-2 value (which is what this script uses):
https://en.wikipedia.org/wiki/ISO_3166-2:GB

All the best!

Ben

from country-region-selector.

yabdab avatar yabdab commented on June 2, 2024

OK, thanks for the reply. A simple replacing "GB" with "UK" fixes the issue. Most Shipping APIs want UK and not GB

On Nov 2, 2016, at 5:21 PM, Benjamin Keen [email protected] wrote:

Hey @yabdab https://github.com/yabdab! No, I'm afraid UK won't work. The script needs unique identifiers for each country to know what country is being specified. Those country string are defined in the countryShortCode values in this file:
https://github.com/benkeen/country-region-data/blob/master/data.json#L17198-L17201 https://github.com/benkeen/country-region-data/blob/master/data.json#L17198-L17201
So GB is the one you need to use for the UK. That's the ISO-3166-2 value (which is what this script uses):
https://en.wikipedia.org/wiki/ISO_3166-2:GB https://en.wikipedia.org/wiki/ISO_3166-2:GB
All the best!

Ben


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub #41 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/AAFVW-TAytGCkRZUeVsTYFmOuBxsCP2Kks5q6P7UgaJpZM4KnMXm.

+--------------------------------------------+

Mike Yrabedra
Yabdab Inc.
[ a web engineering company ]

web: https://www.yabdab.com/ http://yabdab.com/
twitter: @mikeyrabedra / @yabdab
facebook: http://facebook.com/yabdab/ http://facebook.com/yabdab/

+--------------------------------------------+

from country-region-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.