Questions tagged [country-codes]

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

326 questions
8
votes
5 answers

Match language code with countries where this language is an official or commonly used language

Is there any python library to get a list of countries for a specific language code where it is an official or commonly used language? For example, language code of "fr" is associated with 29 countries where French is an official language plus 8…
jack
  • 17,261
  • 37
  • 100
  • 125
8
votes
2 answers

How to get Mobile Country and Network code on an iPhone

Is there any way of getting the mnc and mcc numbers on an iPhone?
Johan
  • 1,951
  • 1
  • 18
  • 22
7
votes
6 answers

Add a prefix to TextField in SwiftUI

I want a ‘+’ Sign in the Textfield which cannot be erased. A user should be able to enter values after it and if he presses backspace it should only erase the value he entered. And when I write any other number it will automatically add a ‘+’ at…
Ravindra_Bhati
  • 1,071
  • 13
  • 28
7
votes
5 answers

get country code from country name in android

I know there is a way to obtain the country name from a country code, but is it also possible the other way arround? I have found so far no function that converts a String like "Netherlands" into "NL". If possible, how can I obtain the country…
Tristus
  • 183
  • 1
  • 2
  • 15
7
votes
1 answer

Country select control for angularJs

I need to use a country dropdown in my angular-breeze app, and I tried with the following: https://github.com/banafederico/angularjs-country-select The problem here is that it doesn't have a country/code pair, just the long name of the country,…
devC
  • 1,384
  • 5
  • 32
  • 56
7
votes
1 answer

TimeZoneInfo and country codes

I'm looking to implement a function with a signature something like the following: bool IsTimeZoneValid(string countryCode, DateTime localTime); The intention is to determine whether the country has a time zone in which the local time would be…
Greg Beech
  • 133,383
  • 43
  • 204
  • 250
6
votes
2 answers

Add Search Bar on the picker list SwiftUI

I tap on picker it will open screen with list of element on that screen, can we add Search Bar? I implemented Country Picker, in the country list I am showing country name and country code so on that list screen add Search bar find out country…
Ravindra_Bhati
  • 1,071
  • 13
  • 28
6
votes
2 answers

countrycode() doesn't recognize Kosovo?

I think I found a bug or rather a missing update in the package countrycode: library(countrycode) testData <- data.frame(country=c(rep("Germany",3),rep("Kosovo",3))) testData$iso3 <- countrycode(testData$country, "country.name", "iso3c") which is…
Jakob
  • 1,325
  • 15
  • 31
6
votes
4 answers

How to change locale to use Latin Serbian (instead of Cyrillic Serbian)

The Serbian language has Latin and Cyrillic alphabets. In Android's Date and Time Picker widgets, the displayed alphabet for Serbian locales seems to be Cyrillic, as seen here. I wanted to change the locale so that the android widgets are using the…
Eric S.
  • 1,502
  • 13
  • 31
5
votes
5 answers

Database: Currencies By CountryCode?

Where do I get a list of currencies along with country code? Example Code, Currency Name, Country, Format, Decimal Points, Currency Regime, Major Unit, Minor Unit, Equivalence, USD, US Dollar, United States, $#,###.##,…
001
  • 62,807
  • 94
  • 230
  • 350
5
votes
1 answer

'https://restcountries.eu/rest/v2/all' not working, How to get all countries now?

Before week ago, https://restcountries.eu/rest/v2/all was giving country code but now it is not working so how can someone use it to get all country code. Code throws The SSL connection could not be established, see inner exception. The remote…
Darshana
  • 601
  • 2
  • 9
  • 20
5
votes
2 answers

Country code from a latitude longitude position (without using geocoding services)

How can i get the country code from a latitude longitude position? I know that there are many geocoding services available, but they don't meed my requirement because my application gets blocked a few hours after it goes live (many geocoding…
T. Akhayo
  • 411
  • 6
  • 13
5
votes
2 answers

where can I find SVG or GeoJSON of countries that uses a 2 or 3 digit country code?

I was going to use the Polymaps.org library (combined with Protovis) to create a nice vector based world map. However, there example (http://polymaps.org/ex/world.html) uses a GeoJSON from Thematic Mapping, but the countries are coded by name…
pocketfullofcheese
  • 8,427
  • 9
  • 41
  • 57
5
votes
1 answer

List of countries and ISD (calling) codes as two arrays for android spinner

I need to show a list of countries in a spinner and when user selects a country i have to send its country ISD code to the server. I know these are having api like this and in text way it is here. But unfortunately I have to use it in many places…
jafarbtech
  • 6,842
  • 1
  • 36
  • 55
5
votes
2 answers

Get country code using pycountry from a user input

I am trying to convert a country name to the desired country code. For example: United Kingdom : UK I have attempted the following: import pycountry user_input = raw_input(': ') mapping = {country.name: country.alpha2 for country in…
Enigmatic
  • 3,902
  • 6
  • 26
  • 48
1 2
3
21 22