Questions tagged [country]
448 questions
7
votes
1 answer
Python Current Time in a City and State, or Country
I have a huge dataset of people with their location data. One of my modules goes through this dataset only ONCE and generates a table in my database to map location data to timezone. This module uses geocoders, tzwhere, and puts.timezone. After…

1man
- 5,216
- 7
- 42
- 56
7
votes
1 answer
iOS programming - how to discover from which (country's) app store the app was downloaded
As you iOS devs know, you can only set one price tier for your app and in-app products in the app store. However, you can (theoretically) publish it as separate apps in different countries with different prices. I would like to do the same with…

Avi
- 826
- 6
- 16
7
votes
1 answer
Convert country name to Country Code Abbreviations php
Is there a way to convert country name to country code abbreviation? Or some php function?
So that when its "Australia" it will be changed to "AU"

user1299846
- 387
- 3
- 8
- 16
7
votes
8 answers
Website language: use browser locale or IP address
For a website we're about to implement automatic country/language selection, but still giving the user the choice to change it.
First of all, if the user enters the website using a domain with a country-level TLD they will be presented the correct…
Tharuka
6
votes
7 answers
Get a country's continent in C#
Is there a way to find a country's continent in C#, using the RegionInfo class or any other way?
For example, you give the country name "Denmark" and it returns "Europe".

Mark Sillatson
- 63
- 1
- 3
6
votes
1 answer
Android retrieve user country from google account
I'm working on app that have content filtering based on user country. As far as I know, it's possible to get country on iOS via App Store. Are there any possibility to do this on Android through Google Play?
List of solutions, that are not…

costello
- 446
- 7
- 13
6
votes
4 answers
What is the best way to deal with address inputs that can be from multiple countries?
Most of my websites in the past have been rather limited to the United States when it came to displaying addresses. On a project I'm working on right now, however, users can add events from all over the world. My problem is how to go about dealing…

Andrew.S
- 169
- 12
6
votes
1 answer
Rails Geocoder restrict region/country
I would like to restrict my search for latitude/long. for a specific region (i.e. New Zealand).
Google provides some parameters that can be set to achieve the results, such as : 'componentsRestriction' and 'region'. I tried to set the same thing in…

Ar Thur
- 61
- 3
6
votes
2 answers
How Can I check programmatically app store region/country?
Is there a way to check it?
I have an application URL, which I don't want to be opened expect if the user have a uk appstore. unfortunately, this application is available in many country, so when I put 'gb' on the link, it be redirected to the…

kayla08
- 285
- 3
- 9
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
1 answer
iPhone app with Territory Limitation
Currently I have a live iPhone app. I need to convert it to a paid one with territory limitations. That means I need to make my app paid for some territories and free for the rest.
Will apple allow this?
Can I upload 2 separate apps with same…

Abhijith G
- 244
- 1
- 8
5
votes
1 answer
JQVMAP Country Coloring
I am using JQVMAP at here. When I have a country that has members I desire to change that country's color without mousing over it, as the map is displayed.
I am using the following sql to get the countries and the number of their members. My…

James S. Null
- 83
- 2
- 7
5
votes
2 answers
GeoIP for C++ is there a lib for this?
I have looked and looked and I can't seen to find a C++ version of GeoIP. I know there is a version of it in C, but I can't seem to get it working with Micosoft Visual Studio 2012 C++
I have tried:
Compile Maxmind C library with visual studio…

Jork449
- 97
- 2
- 6
4
votes
3 answers
How to make the cities/countries dropdown like facebook does?
See the screenshot here:
I'd like the user to just type a city or country name and the autocompleter will show suggested items.
How should I start for creating it?
Are there any API(s) or web services for me to call?
Where can I find the database…

Atthapon Junpun-eak
- 540
- 2
- 11
- 23
4
votes
2 answers
How to get time zone by country or city in Flutter?
Can I get the timezone by passing the city and country as parameters in Flutter?
I'm using DateTime class to get a timezone like this:
DateTime var;
print('${var.timeZoneName}'); // -> +3
What I need is to get same result above by passing…

Osama Remlawi
- 2,356
- 20
- 21