Questions tagged [country]
448 questions
4
votes
1 answer
Highlight country flag on blank world map when hovered on specific country
I'm using jVectormap plugin for country highlighting on world map. Now As my question suggests i want to show country's flag when specific country is hovered over.
I don't want to do image mapping for whole world map. so don't post that solution, i…

Vrushank Brahmakshatriya
- 41
- 1
- 2
3
votes
1 answer
I want to display the country list based on German and English language
I'm using npm 'country-data'. I need to display the country based on German and English language & also in alphabetical order.
this.stateOptions = [];
lodash.each(countries.all, (state) => {
if (state.status !== 'assigned') {
…

Sujitha
- 153
- 9
3
votes
2 answers
How to color in a specific country on a map
I need to color in just Costa Rica in a cropped world map of just Central America.
The code I've already written is included below... I would like to be able to do it with the ggplot2 and sf…

lwang131
- 33
- 3
3
votes
1 answer
How to find out the country of the user's SIM card on Android?
Is there a way to check what is the user's country? "Locale" isn't good enough because there are plenty of English locales but they are spread all over the world.
Maybe somehow with IMEI or...?
So actually I need to find out which country does the…

svenkapudija
- 5,128
- 14
- 68
- 96
3
votes
1 answer
Chart.js - bind data in dataset to specific chart labels
I am trying to make a chart in Chart.js which outputs the world's population (this is just an example which I am gonna be using for a different project), my problem is that one of the countries doesn't have a population (Somethingistan), I do want…

peaceduck
- 231
- 1
- 2
- 9
3
votes
1 answer
Google places autocomplete suggestion without country name
I am looking for a possibility to get suggestions without country name.
I have the following js code:
... var autocomplete_pickup = new google.maps.places.Autocomplete(pickup_field, {
types: ["address"], componentRestrictions: {country:…

Buxte
- 31
- 3
3
votes
4 answers
In C#, how to get the "Country or region" selected under "Region & language" in Windows 10?
I am running Windows 10. When I open "Region & language settings" from the start menu, I can select a "Country or region". I am trying to get this value in a C# program.
I am in Denmark. I have tried changing my country to Germany (see screenshot),…

Claus Appel
- 379
- 1
- 4
- 13
3
votes
0 answers
Google Maps Autocomplete returns wrong short_name for country
I have a problem with the Google Maps Autocomplete. When selecting an entry from the dropdown I want to get the detailed data using autocomplete.getData().
In detail I need the country code, which is normally sent in the "short_name" attribute of…

Carsten Wilhelm
- 61
- 3
3
votes
1 answer
Country restriction in autocompleteFilter in android
I am working on google places api. I use AutoComplteFilter to set the filter in search results. As menthioned in this lynk
i try to restrict my results within the specified country. But i am not able to access this method setCountry(String country)…

gReEn HoRn
- 274
- 1
- 4
- 19
3
votes
1 answer
How to get list of nationalities in Java
Does someone know a way to retrieve a list of nationalities in Java ? Few precisions : I do not need a list of countries but a list of nationalities. I do not need a list of languages, but a list of nationalities. I've tried to twist Locale API,…

Germs
- 347
- 6
- 8
3
votes
1 answer
Google Places Autocomplete country restriction
Is there a way to make Google Places Autocomplete restricted to one country like France?
I have this:…

medk
- 9,233
- 18
- 57
- 79
3
votes
0 answers
Is possible to search data by country in Openweathermap
Is it possible to get xml data from openweathermap by country?
As I search in documentation I have notice that you can search by this diffrent ways:
By city name
By geographic coordinate
By city ID
For example: This is url for getting data by…

DaniKR
- 2,418
- 10
- 39
- 48
3
votes
1 answer
Map with political borders similar to google charts, "clickable" countries
I'd like to add a map of countries to my website where the user can choose a specific country by clicking on it. http://code.google.com/apis/chart/docs/gallery/map_charts.html has the looks i want, but it's not possible to underlay the countries…

Christian Benke
- 61
- 7
3
votes
1 answer
How to determine the country from a free text address?
We've got a legacy custom address control. It provides a free text form into which users can enter any address, even a partial or invalid address; see green arrow in the screenshot:
Entering an address in this free text form is to provide better…

Quality Catalyst
- 6,531
- 8
- 38
- 62
3
votes
1 answer
How Do I Redirect Using Freegeoip.net Based On Country?
I would like to redirect visitors from and to a specific page within my website if those visitors are from any other country besides the United States, using freegeoip.net
I am a relative beginner to coding and I wasn't able execute the code on this…

Lucardya
- 31
- 3