ISO-3166 standard defining 2 and 3 character identifiers for each country in the world.
Questions tagged [country-codes]
326 questions
5
votes
0 answers
Dial code from country code (mcc) using Cordova, ionic
How do I get dial code from mcc (mobile country code)?
eg. India has 404 or 405 as mcc for various network operators, +91 as the standard dial-code.
I am using cordova-plugin-sim plugin of cordova.
When I use window.plugins.sim.getSimInfo…

Shri
- 834
- 1
- 12
- 36
5
votes
0 answers
Converting regions/subdivisions (from FIPS to ISO 3166 or vice versa )
I have two databases, one with country and subdivisions (states/regions) and one with cities.
The problem is, that they use both a different norm.
The Countries subdivisions delivers: ISO 3166-2 Codes (Numbers and Characters) and
the Cities…

Jan
- 12,992
- 9
- 53
- 89
5
votes
1 answer
detect country code by a given phone number in javascript
I have an object with all available country codes. and I want to know how I can get the country code by a given phone number and display the corresponding country name. the phone number will look like 16041234567(Canada/US +1) or maybe…

eded
- 3,778
- 8
- 28
- 42
5
votes
2 answers
java.util.MissingResourceException: Couldn't find 3-letter country code for CS
I get the exception:
Exception in thread "AWT-EventQueue-0" java.util.MissingResourceException: Couldn't find 3-letter country code for CS
at java.util.Locale.getISO3Country(Locale.java:1521)
at…

ultimate.divinity
- 151
- 1
- 5
- 9
4
votes
1 answer
Is it possible to get the country code of a user from Facebook's Graph API?
When i tried to get the current location of a user via FQL, Graph API returned something like this;
{
"data": [
{
"current_location": {
"city": "Izmir",
"state": "Izmir",
"country": "Turkey",
"zip": "",
…

onur
- 395
- 1
- 3
- 8
4
votes
1 answer
Retrieve Country Telephone Area Code using ASP.NET C#
I want to retrieve the country telephone code using ASP.NET C#... I've searched at google and the MSDN website but what I've found was the way how to retrieve the ISO Country Code..

Roberto Becher
- 164
- 2
- 4
- 11
4
votes
2 answers
How do I convert an IOC country code to country name?
I have a pandas dataframe
import pandas as pd
s = pd.DataFrame({'ioc' : ['ESP', 'CYP', 'USA', 'ESP', 'NED']})
and I want to return
out = pd.DataFrame(
{'ioc' : ['ESP', 'CYP', 'USA', 'ESP', 'NED'],
'countryName' : ['Spain', 'Cyprus',…

Amin Selim
- 71
- 4
4
votes
1 answer
How to create Cascading Drop Down (Country and State list) In Angular 6
How to create Cascading Drop Down (Country and State list) In Angular 6. I want a fully country and there state list in angular 6.
anyone who know that pl z share your idea.
user10153722
4
votes
1 answer
How to Get 3 digit country code from latitude and longitude in android
Can anyone please tell me about how to get 3 digit country code (for example India-IND) from latitude longitude
here is my code for getting 2 digit country code
latitude = gps.getLatitude();
longitude = gps.getLongitude();
geocoder = new…

M.Neelima
- 221
- 1
- 10
4
votes
2 answers
Country code for international waters
I am implementing an API and C++ SDK that will return two-letter country codes like "US" for a given latitude/longitude. These ISO 3166-1 alpha-2 are well documented, but there is no code for international waters. Is there a convention for what…

Mohan
- 7,302
- 5
- 32
- 55
4
votes
3 answers
Ruby on Rails- Display Country Real Name with country-selector
In my Rails application, I installed the following gems
gem 'countries'
gem 'country_select'
gem 'simple_form'
When a user signs up, they select a country (ex. United Kingdom)
on the User's Show page `
<%= @user.country %>` => Displays GB
My…

Mary Smith
- 121
- 2
- 10
4
votes
4 answers
where magento stores country full name
I have spent hours searching to find where magento stores full county name.
We can get a full list of countries using this code:
$_countries = Mage::getResourceModel('directory/country_collection')
->loadData()
->toOptionArray(false);
This…

rramiii
- 1,156
- 6
- 15
- 29
3
votes
4 answers
get list of countries from wp7
is it possible to get list of country names and country codes somehow from phone? E.g. the list of countries is displayed in Settings.
Or can I easily get country name from country code like gb,de,fr,cs,...
Thank you

luccio
- 485
- 1
- 6
- 24
3
votes
2 answers
How to get currency name by country code?
I want to get the currency name by country code. I get the country code with the following code:
TelephonyManager manager = (TelephonyManager)getSystemService(TELEPHONY_SERVICE);
String countrycode=manager.getNetworkCountryIso();
…

asha v
- 2,039
- 2
- 15
- 9
3
votes
2 answers
How do I find the Locale Identifier using the ISO country code (2 letters)
In my App I would like to display the correct currency code depending on the country the user is looking in:
var isoCountryCode = "GB"
let currency = Locale(identifier: isoCountryCode).currency?.identifier ?? "GBP"
So instead of hard coding…

Daniel C
- 113
- 1
- 8