4 ms·
The suggested http://euvatrates.com/rates.json http://euvatrates.com/rates.json and pretty much any EU taxation document uses country code "EL" for Greece while
by AhtiK 12y ago
The suggested http://euvatrates.com/rates.json http://euvatrates.com/rates.json and pretty much any EU taxation document uses country code "EL" for Greece while ISO standard and most geolocation APIs use "GR".
Just make sure your code doesn't crash because of this :)
"GB" vs "UK" for United Kingdom is another one to pay attention to.
- kuschku 12y agoIt’s about consistence. Name of the Country in it’s own language, abbreviated to 2 letters. Results in EL for Greece, UK for the United Kingdom, etc. GB is an island and has nothing to do with the UK, it’s as if you’d call Japan now Hokkaido, it makes no sense.
- AhtiK 12y agoYet, if you look at, let's say https://freegeoip.net/json/linweb.codehoop.com https://freegeoip.net/json/linweb.codehoop.com then there's "country_code":"GB","country_name":"United Kingdom" :) Which is correct, "GB" is ISO 3166 Alpha-2 country code for United Kingdom.
- michaelt 12y agoWell, GB is consistent if the rule you're following is "Use the ISO country code" as "GB" is the ISO country code for the UK [1]. [1] http://en.wikipedia.org/wiki/ISO_3166-1 http://en.wikipedia.org/wiki/ISO_3166-1
- syntern 12y agoHungary does not start with "HU" in Hungarian (Magyarország). This logic is certainly flawed. We have standard international abbreviations for a reason, please use them.