Questions tagged [country-codes]

ISO-3166 standard defining 2 and 3 character identifiers for each country in the world.

326 questions
3
votes
2 answers

How to plot a world map using R

I am working on a project and a small part of it is plotting a world map with the 135 countries I have in my list. I also have a list that says whether they are developed or not. How do I put this in the world map with different colors for the…
3
votes
2 answers

Enum for ISO3166 countries - acceptable practice?

I'm developing an ASP.NET MVC 3 application and it uses a complex model which is serialized/deserialized to/from XML. Some fields require ISO3166 country codes. I have several defined Enums for other restricted lists (which are very unlikely to…
TonE
  • 2,975
  • 5
  • 30
  • 50
3
votes
1 answer

Remove countries in WooCommerce from an array of defined country codes

I found How to remove specific country in WooCommerce answer code that works for unsetting one country. How can I use it to unset more countries 3-4? This code works to hide US from my geolocation list. I need it to hide a few more countries based…
Radu
  • 45
  • 7
3
votes
3 answers

What are some practical advantages of storing a country code rather than just the country name itself?

I apologize in advance if this is a newb question, but what are some practical advantages for doing this?
blacktie24
  • 4,985
  • 6
  • 41
  • 52
3
votes
2 answers

How to add new state(s) for a country to WooCommerce?

I want to add new state in WooCommerce. I used woo-state and snippet plugin and added this code: function woo_add_my_country( $country ) { $country["AE-DU"] = 'Dubai'; return $country; } add_filter( 'woocommerce_countries',…
nooo
  • 81
  • 1
  • 1
  • 8
3
votes
1 answer

Paypal adaptive payments: unsupported country code error 580022

Just reporting this error that has occurred on any paypal response to preapproval requests in the adaptive payments environment since september 17 in the morning (Italy time): errorId: 580022 domain: PLATFORM subdomain: Application severity:…
3
votes
4 answers

How can i determine the country code just by looking at the number

I'm Developing an app in react-native where i get phone numbers from the phones contact list. The problem here is many people save the number without country code in their phonebook. In such cases i'm unable to determine to which country that phone…
addu
  • 71
  • 1
  • 9
3
votes
6 answers

How to identify a country from a normalized phone number?

I have a list of international phone numbers and a List of Country calling codes. I would like to identify the Country from the numbers but I can't find a fast and elegant way to do it. Any idea? The only I got is to have an hardcoded check (Eg.…
Paolo
  • 1,299
  • 3
  • 15
  • 17
3
votes
1 answer

Determine country code for iOS Region "Europe"

I am working on an app which asks users for phone number and has a country picker, where the user should input country code. But while testing null country code values, I found out that somehow my iPhone with iOS 10.2.1 has a region format set to…
Blackbeard
  • 652
  • 2
  • 8
  • 22
3
votes
1 answer

Get latitude/longitude coords when I have Country name/ISO with Android

In Android I have the countrys ISO code. I want to get the latitude/longitude coordinates from that country. I am using the Google Maps API. How can I get the coordinates?
ninjaxelite
  • 1,139
  • 2
  • 20
  • 43
3
votes
5 answers

Address class getCountryCode() method returns digits

public static Country getCountryFromLocation(Context cxt, List countryList, Location location, int maxAddress) { if (location == null || countryList == null || countryList.isEmpty()) { Log.d("ooo", "location == null ||…
shanwu
  • 1,493
  • 6
  • 35
  • 45
3
votes
1 answer

How to convert timezone to country code in Python?

I used this from pytz import country_timezones But It doesn't include below timezones Africa/Asmera, Africa/Timbuktu, America/Argentina/ComodRivadavia, America/Atka, America/Buenos_Aires, America/Catamarca, America/Coral_Harbour, America/Cordoba,…
Lion.k
  • 2,519
  • 8
  • 28
  • 43
3
votes
3 answers

How to get ISO currency code by country code in rails?

In my rails app I want to use country-code, currency-code, ISO locale code to fetch some data from API. How can I get this information dynamically when user visit my site from anywhere? I have used geocoder gem so by request.location I will get…
Gagan Gami
  • 10,121
  • 1
  • 29
  • 55
3
votes
1 answer

How to get the country code from mobile number using php

i am getting mobile number from database in database i am haveing more the 1000 mobile numbers,my database look like this mobilenumber 971525478965 919844005522 45712345678 i want to go through each number in the database and find the…
Xavi
  • 2,552
  • 7
  • 40
  • 59
3
votes
3 answers

jvectormap country code index, country name index parameters information needed

I was working with map converter for Bangladesh, i have few shape files. But i am having problem understanding following parameters while creating map Js form shapefile. Need information from where i can find these parameters value for my country…
Ikhtiar
  • 53
  • 2
  • 8