Questions tagged [country-codes]
ISO-3166 standard defining 2 and 3 character identifiers for each country in the world.
313
questions
0
votes
0
answers
18
views
+50
With tweepy, how to find tweets from just one country and filter by keywords?
Please, in python3 and with tweepy is it possible to search for tweets only from a certain country and include other types of search?
In the example below I try to search for tweets from Mexico, in ...
1
vote
0
answers
29
views
Flutter Dart - get localized country name from country code
I have a list of alpha-2 country codes.
List<String> countryCodes = ["DE", "CH", "AT"];
How to get the localized country names in Flutter/Dart?
If the device ...
-3
votes
0
answers
16
views
convert from ISO 3166-1 numérique into ISO 3166-1 alpha-3 [duplicate]
Does anyone know how can i convert ISO 3166-1 from numerique into alpha Specifically I need the "ISO 3166-1-alpha-3 code elements" of every , the 3 character country code like "FRA&...
0
votes
1
answer
17
views
flutter CountryCodePicker i need to remove close icon, from CountryCodePicker dialogBox
flutter CountryCodePicker i need to remove close icon, need when a user click outside the dialogBox then need to close the Countrycode dialog box.
please check the image,
CountryCodePicker(
...
1
vote
1
answer
34
views
Cloudflare HTTP_CF_IPCOUNTRY sometimes returning wrong countries
I'm trying to get the visitor's country code from Cloudflare through the header HTTP_CF_IPCOUNTRY.
When I use this, I receive the correct country code I am visiting the site from, although this code ...
0
votes
1
answer
23
views
JS Geolocation countries dropdown
I use get ipapi.co/country for detecting the location country and then to make the select option active depending on this location. But it makes the form a little bit slow to render the country option....
0
votes
2
answers
39
views
Is there a function in R that lets me create a new column with (1) the full country names and (2) the respective continent?
In my dataset I have only the country codes given. I managed to get the full country names, however for some reason I cannot create a new column with the full country names & consequently cannot ...
0
votes
0
answers
45
views
What is the best option for International phone number input in React js?
I tried using react-phone-input-2 and react-phone-input components of react, but it does not take # and * as input and also not found effective...
I wanted to creat customized input element that will ...
0
votes
0
answers
98
views
Format users' contacts' phone numbers - Flutter
I am building a chat application that takes a user's phone number with a country code for registration. After registration and permission, I use the contacts_service plugin to access the contacts on ...
0
votes
1
answer
191
views
Flutter how can i get the value that from country code that i've been used from my app
i got the code from pub.dev but its a bit complicated for me to understand when i try to get the value that on the ccp. this is the code what they give me
void _onCountryChange(CountryCode countryCode)...
0
votes
2
answers
132
views
How to plot worldmap in R
I'm working on a project and a small part of it consists of drawing a world map with 43 countries on my list. My dataset is as follows:
How do I put this on the world map with different colors for ...
1
vote
0
answers
517
views
Country Code and Phone number from react-phone-input-2
How to store value of country code and only the phone number without country code in two different variables in react js of package react-phone-input-2?
I am using this package - https://www.npmjs.com/...
0
votes
2
answers
302
views
How to group values in a column (R)
I'm creating a summary table that groups my records by country of destination:
SummarybyLocation <- PSTNRecords %>%
group_by(Destination) %>%
...
0
votes
1
answer
20
views
Dynamically retrieve user country to rectrict results from Google Places API
I'm developing my personal project and I'm working for first time with the Google Places API - I would like to retrict the user's post/search to each user's country.
So I need visitor from Australia ...
0
votes
1
answer
58
views
How to get currency code, currency name, country name, country code ISO2 ISO3 in a Arraylist?
Hi all i searched a lot to find a way to get a list of all the codes that belongs to a country like
Country name, country code Phone code, currency name currency code. I was not able to find the full ...
0
votes
1
answer
31
views
Get countries (in multiple languages) based on the given ISO
I´m building a django application and I try to get a list of countries (which can also contain countries in multiple languages) based on the iso given as the input. Let´s consider the following ...
0
votes
1
answer
423
views
Get country main language by country code
Is there a way i can get a country main language by its country code?
I need something like countries-list npm package which gives me a list of spoken language codes by a country code.
An example of ...
3
votes
2
answers
238
views
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']...
1
vote
1
answer
40
views
Taiwanese language and country codes
I'm a bit uncertain between the two variations below:
zh-cht and zh-tw - it's for a site in traditional Chinese, mostly in Taiwan, but presence in Maccao and Hong Kong.
So zh-cht and zh-tw seem to ...
1
vote
1
answer
48
views
countrycode in R - NA's returned when detecting country name in df
I am trying to get the respective continents for a vector of country names in a data frame. I'm using the countrycode package to do so, but keep getting NA's returned as my destination. Example code I'...
0
votes
1
answer
102
views
Convert phone country codes to country names
Is there a library or a way to convert phone country codes to country names. For example, convert 33 to France. I can't seem to find the phone country code as origin in library(countrycode).
3
votes
2
answers
732
views
How to plot a world map using R
I am working on a project and a small part of it is plotting a world map with the 135 countries I have in my list. I also have a list that says whether they are developed or not.
How do I put this in ...
2
votes
1
answer
3k
views
'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 ...
1
vote
0
answers
260
views
Pycountry: how to get country name, language name and alpha_3 and find matches from a language list
I have a list of languages and dialects.
For these languages I need to get Alpha_3 and country.name (if availavle).
import pycountry
my_langs = ['Aachen German', 'Aalsters', 'Abkhaz', 'Afrikaans', '...
1
vote
0
answers
31
views
Can i use other Country Location Codes?
the meta name="og:country-name" content="?"
Normally I would use a 2 letter ISO such as GB or US, but I have seen there is a 3 letter such as GBR or USA exist published by the ...
0
votes
1
answer
196
views
Retrieve country name using country code in app language not phone locale language
I'm using Localize_Swift library. I change the app language using it. Now I'm retrieving country name using country code using this.
class Country: NSObject {
class func locale(for countryCode : ...
0
votes
2
answers
48
views
Better Organization Of Data on Graph
I have my data organized as
Country Year Region1 Region2...
Mexico 2007 10000 20000
Mexico 2008 1000. 1000
Guatemala 2007 500 2000
Guatemala 2008 1000 200
x <- read_csv("...
0
votes
0
answers
34
views
Create Graph By Year
Each of my pdf files are done by years "Data2007.csv", "Data2008.csv", etc.
In the CSV:
Country Region1 Region2
x 200 100
y 120 150
I'm trying to ...
-3
votes
1
answer
158
views
Can't Convert Country Into Continent Through CountryCode [closed]
library(tidyverse)
library(readr)
library(countrycode)
library(stringr)
B07 <- read_csv("Downloads/BorderData/BorderApprehension2007.csv")
B08 <- read_csv("Downloads/BorderData/...
0
votes
2
answers
2k
views
Select country then automatically show country code on next input
I'm trying to add a person's nationality and phone number. So I have a dropdown with country names for nationality and an input box to enter a phone number. When a person choose the nationality (...
0
votes
0
answers
39
views
how does an android phone app check the phone country setting
I bought a new Samsung phone in the USA for my wife (S20+) and used the Samsung "copy" app to transfer the settings from her old phone (which we bought while we were living in Taiwan.) Now, ...
0
votes
1
answer
427
views
Android CountryCodePicker set country to null
I use the CountryCodePicker from the CountryCodePickerProject by hbb20.
I get the User's data from the DataBase, and sometimes for whatever reason the User has "" (empty string) saved as ...
0
votes
2
answers
282
views
How to pass an argument which needs quotes in an R function?
Here's a non-function part of the quote. It works well.
library(countrycode)
countrycode(df$iso, origin = 'iso3c', destination = 'country.name')
I'm trying to put that in a function, but am having ...
0
votes
1
answer
385
views
Limit to multiple countries using GooglePlacesAutocomplete with react-native
I have seen a few posts explaining how to set multiple countries for google places autocomplete in javascript/react as so:
componentRestrictions: {country: ["gb", "fr"]}
but for ...
-1
votes
1
answer
89
views
Get user Country Code by IP via php function
I have a snippet of code from an existing system that is pulling the users 2-digit country code from an obsolete database table. Normally I have updated the table on a regular basis but I am quite ...
0
votes
0
answers
66
views
How do I extract the country code from this HTML on OpenRefine?
I'm a newbie in all this, and don't even know how to refer to some terms correctly, sorry if I'm not very good at explaining myself. I'm trying to find a way to extract the country code, in my case &...
1
vote
2
answers
64
views
how list USA as a first option from countries dropdown in rails?
i have a countries dropdown in my rails app (using countries gem)
listing all the countries in the dropdown like this.
all_countries = ISO3166::Country.all.map{ |c| ["#{c.alpha3} (+#{c....
0
votes
3
answers
1k
views
How do I get the country name from a given ISO-3166-1 alpha-2 code in Python?
I want the user to input a ISO-3166-1 alpha-2 code.
country_code = input("Please enter a country's two-letter code (e.g. FR, US) :")
I then want to translate the code into the country's ...
3
votes
1
answer
192
views
Remove countries in WooCommerce from an array of defined country codes
I found How to remove specific country in WooCommerce answer code that works for unsetting one country. How can I use it to unset more countries 3-4?
This code works to hide US from my geolocation ...
0
votes
0
answers
79
views
Country Codes API
I was able to construct a detailed spreadsheet from iso.org, by going through 10 different web pages, copying and pasting.
What I would like to do, is keep this list updated, and add/de-activate as ...
0
votes
0
answers
86
views
WooCommerce hide some countries from customers but not for admin
Hi see below code hiding countries for clients but not admin. I am using all ISO codes to hide and remove countries. This code does not contain the following countries (Austria, Denmark, Latvia, ...
0
votes
1
answer
262
views
Changing country code subdirectory from URL
I need to change the country code in the URL when I select the country from the dropdown.
Currently I only have 3 countries in the dropdown, but when I switch from SG (testing.com/sg/features) to IE, ...
1
vote
2
answers
552
views
Country code select dropdown issue with countries having same country code
I have a country code select dropdown in React. Recently I came to know that the USA and Canada have the same country code. The problem is whenever I select either Canada or the USA, the USA always ...
0
votes
2
answers
73
views
Replacing values in a column values with another column (country codes)
I have two datasets, baci_2002 and country_codes. Baci_2002 has country codes in 1 to 3 digit numbers and I want to change them to country codes with 3 letters. The dataset country_codes is a table ...
1
vote
0
answers
77
views
What does this line in PayPal's developer documentation mean?
Use the C2 country code for China worldwide for comparable uncontrolled price (CUP) method, bank card, and cross-border transactions.
Found on this page: https://developer.paypal.com/docs/api/orders/...
1
vote
1
answer
2k
views
Getting all country codes from libphonenumber-js and looping it out
I have a contact number input field and I was able to prepend a country code dropdown to the input field.
Now when user selects the country code, the number format will change according to the ...
1
vote
0
answers
845
views
Each child must be laid out exactly once. The relevant error-causing widget was: Scaffold
I'm starting to work using flutter, there's no error before.. but when i click hot restart, the error came out and there's two error:
Bad state: No element`
Each child must be laid out exactly once.
...
0
votes
1
answer
367
views
Adding continent/region column to data frame using countrycode package
I need to add a column to my dataframe which which gives the region/continent based on the data provided in column "Country.region" using the countrycode package. I do need to maintain the ...
0
votes
2
answers
99
views
How to convert country names to ISO 3166-1 alpha-2 values in arm template
I have an ARM-template and I would like convert country name like "United States" and I would like to get the ISO 3166-1 alpha 2 code like "US". This converted value I would use ...
1
vote
1
answer
385
views
Is there a way to aggregate countries into regions in R?
I have data that looks like this:
Date Value Country
1/1/2020 0 China
1/2/2020 2 China
1/1/2020 8 Mexico
1/2/2020 9 Mexico
1/1/2020 1 ...