Questions tagged [country-codes]

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

326 questions
0
votes
1 answer

migrating addresses using SQL but tables of different DB's has diffent ID for zones

i am in the middle of migrating a website from cubecart v3 to opencart 2.0 using phpmyadmin and have just got the last important bit to do, but the ID for countries and counties are different this is what i had in mind UPDATE `oc_address` SET…
0
votes
1 answer

Perl API for getting site domain

I was wondering if there's a Perl API I can use that would get 'co.uk' or '.de'. I want to map the country code onto a site domain to redirect people. so if the country code is 'gb', then I'd redirect to .co.uk, without having to hardcode this in…
snakespan
  • 1,183
  • 2
  • 15
  • 33
0
votes
4 answers

How to dynamically get the country code based on selected country

Here is the piece of code that i am using. I have to show the country code automatically based on selected country by the user. I have a database which has both, the countries and corresponding country code. Now in the line where currently I am…
Newibe
  • 49
  • 1
  • 2
  • 8
0
votes
2 answers

Get country code based on user's current location Android

I have already tried out the following code to get country code name TelephonyManager tm = (TelephonyManager)getActivity().getSystemService(getActivity().TELEPHONY_SERVICE); String countryCodeValue = tm.getNetworkCountryIso(); But I guess…
ik024
  • 3,566
  • 7
  • 38
  • 61
0
votes
0 answers

Time Zone information for Google Calendar Event Query

I would like to use following url to retrive the hoildays for each country http://www.google.com/calendar/feeds/tr.turkish%23holiday%40group.v.calendar.google.com/public/full As i am developing application for windows phone, i don't know in which…
GurhanCagin
  • 185
  • 2
  • 13
0
votes
3 answers

Grab airport name based on airport code from json data

Working on a flight booking website. Have a json file which contains the airport codes, city name and country name. [{"iata":"UTK","lon":"169.86667","iso":"MH","status":1,"name":"Utirik…
Radhakrishna Rayidi
  • 510
  • 2
  • 9
  • 24
0
votes
0 answers

android code to find country from ip address of user

I want to filter nearby deals of users. I can able to get the ip address of the user device and store in mysql database. but i couldn't able to get the country name. how to find country using user device ip address?
Priyanka
  • 325
  • 1
  • 3
  • 12
0
votes
1 answer

RadTextBox : Add country code by default

In my Windows Phone 8 app I use Telerik RadTextBox control. I have a field of phone number
Tvd
  • 4,463
  • 18
  • 79
  • 125
0
votes
3 answers

Android Get Country Name with its code

I want to get the country name and country code. For that, I have used the code below: Country_Language = getApplicationContext().getResources().getConfiguration().locale.getDisplayLanguage(); Country_code=…
ADT
  • 255
  • 1
  • 4
  • 14
0
votes
2 answers

GeoIp redirect specific country Traffic to country domain?

I want to redirect US country traffic to my country domain from mydomain.com. My website is in Wordpress and i would prefer .htaccess. i have applied the below code but it redirecting all IP addresses to mydomain.us. Will any body help? GeoIPEnable…
muhammad usman
  • 108
  • 2
  • 10
0
votes
2 answers

Searching Country by Country code

I am working on a search method, which will be called with Ajax, and updates a Webgrid in Mvc4. The search will go through a list of Project objects, which contains some fields. One of the fields is Country. And right now my code only checks if the…
Moelbeck
  • 591
  • 2
  • 7
  • 29
0
votes
1 answer

ABAddressBook Phone Number common format

For my application I need a common formatting scheme for phone Numbers. Unfortunately the numbers in the phone Book do not share the same scheme. E.g. (707) 555-1854 555-610-6679 06641234567 +43 664 1234567 00436641234567 Is there some kind of…
dominik
  • 1,319
  • 13
  • 23
0
votes
1 answer

Using country-select with formastic

I am trying to use country-select with formastic as: :country_of_residence, :as => :country problem is that i want to put New Zealand on the top not other countries. How can I do that within formastic???
Jack Vo
  • 279
  • 2
  • 10
0
votes
3 answers

country code of incoming calls in android

I've just built an application that detecting incoming calls. I see that in some phones(or in different version of android) incoming call number has country code, some incoming numbers has not. Is there a way to get incoming calls with country codes…
cergun
  • 29
  • 2
  • 5
0
votes
1 answer

Shopify regions (countries) in JSON format

I'm trying to implement a JavaScript solution in Shopify to match my customer's current location (by country.code using http://freegeoip.net/json) against an array of countries that my shop delievers too. What I need to complete this is a list of…
RJB
  • 669
  • 1
  • 8
  • 13