Questions tagged [country]

448 questions
16
votes
7 answers

Is there a way to get a timeZone with (only) a country code (valid ISO-3166 code)?

I'm trying to get a TimeZone for a user. For this I have a country code which is a valid ISO Country Code. These codes are the upper-case, two-letter codes as defined by ISO-3166. You can find a full list of these codes at a number of sites, such…
ajeanson
  • 2,580
  • 4
  • 19
  • 17
15
votes
5 answers

Determine Play Store Country

I'm looking to see if there is any way to tell what country version of the play store a user has on their android phone. Basically I want to turn off In-App Purchasing for certain countries (for tax collecting reasons). I have tried Locale but…
TomD
  • 604
  • 1
  • 7
  • 22
15
votes
1 answer

How can we get tweets from specific country

I've read a lot about this part and what I found is to write the geocode and search for tweets for example https://api.twitter.com/1.1/search/tweets.json?geocode=37.781157,-122.398720,1mi&count=10 according to what i found in twitter website Returns…
user2490790
  • 225
  • 1
  • 2
  • 8
14
votes
3 answers

Get continent name from country using pycountry

How to convert continent name from country name using pycountry. I have a list of country like this country = ['India', 'Australia', ....] And I want to get continent name from it like. continent = ['Asia', 'Australia', ....]
VIBHU BAROT
  • 317
  • 2
  • 4
  • 13
14
votes
3 answers

Using PhoneNumberUtils.formatNumber() on API 16

I'm trying to format numbers to a default country code, and I know how, but when I do it, an error appears saying this is only for API 21. I am targeting API 16. If I use the old method, I get an error saying the method is deprecated? How can I use…
Brandon
  • 1,886
  • 2
  • 17
  • 28
14
votes
3 answers

How can whatsapp know country code upon first run on iphone

When I first install whatsapp on iphone, when I open it, the first screen already knows my sim cards location and shows the country code. How does whatsapp know this ? As apple rejects all the apps that use sim card info programmatically.
tony9099
  • 4,567
  • 9
  • 44
  • 73
14
votes
2 answers

NSLocaleCountryCode returns nil

I have a bugreport that states a crash in the following line, where client is an instance of NSMutableDictionary [client setObject:[[NSLocale currentLocale] objectForKey:NSLocaleCountryCode] forKey:@"country"]; My guess is, that NSLocaleCountryCode…
Michael Ochs
  • 2,846
  • 3
  • 27
  • 33
14
votes
9 answers

Source of data for "official" country/region list

Lately we've started getting issues with outdated countries / regions list being presented to users of our web-application. We currently have a few DB tables to store localized country names along with their regions (states). However as the…
jfrobishow
  • 2,897
  • 2
  • 27
  • 42
13
votes
3 answers

How to get ISO Country code in android applications?

I am a new developer on android application. I would like to get the ISO Country code when I pass the mobile number with country code. If I pass the mobile number as 1-319-491-6338, can I get country ISO code as US / USA in android? I have written…
prasad.gai
  • 2,977
  • 10
  • 58
  • 93
9
votes
4 answers

How do I view country flags on Windows 10 through HTML?

Is there a work around to make country flag emoji visible on windows 10 through HTML?

9983 will display ⛿

How to…

MoKi
  • 157
  • 1
  • 2
  • 15
8
votes
3 answers

Official list of countries for iPhone AppStore and In-App Purchase?

I am looking for an OFFICIAL list of countries where : 1 - users can download free applications using the AppStore? 2 - users can download paid applications using the AppStore? 3 - users can use the In-App Purchase to buy additional features for the…
Sly
  • 2,105
  • 5
  • 22
  • 28
8
votes
1 answer

Is there any API for getting all countries and passing country get all States/Region and again passing State/Region get all cities in it

I am creating a web page in asp.net where I have to populate all countries in a dropdown. On selecting one country I need to populate all States/Region in that country to another dropdown. finally on selecting the state/region need to populate all…
user1879363
  • 101
  • 1
  • 3
7
votes
1 answer

Display the full country name rather than country code in WooCommerce?

Trying to use billing_country; ?> to display the WooCommerce user billing country. This for example echo’s as AU if the customer has an Australian billing address. However, I would like to pull the full name in place of the…
Darren
  • 2,176
  • 9
  • 42
  • 98
7
votes
5 answers

WooCommerce: Set country by default in checkout page

I am using WooCommerce in my Wordpress web site. The customers billing and shipping details are populated by default on checkout page. I want that the country will not be set by default. Instead it will asked to select country even if user is…
Sonia Khan
  • 141
  • 2
  • 2
  • 4
7
votes
3 answers

Column type and size for international country subdivisions (states, provinces, territories etc)

I apologize if this is a duplication. What column standardization would you use for storing international country subdivision data? For example, if it was just US and Canada I believe all subdivisions have a 2-character abbreviation... which might…
Matthew
  • 10,244
  • 5
  • 49
  • 104
1
2
3
29 30