Replies: 120 comments
-
It might be useful to provide the country name in the native language of the country itself (e.g. |
Beta Was this translation helpful? Give feedback.
-
The CLDR database of the unicode project contains Country-To-Language data, including the percent of speakers: http://www.unicode.org/cldr/charts/latest/supplemental/territory_language_information.html |
Beta Was this translation helpful? Give feedback.
-
The native name of Germany is already in 'alt-spellings'. I recognize that the name 'alt-spellings' isn't good since it contains alternative spellings and the native name of the country. So there are two solutions here:
Initially, I created this dataset with a country selector in mind [1] but it would make more sense to be able to get the native names separately. So I would choose the second option. But the second option raises the question of how to write the native name of the country. German uses latin characters so it's easy to know that it's Germany, but what about Armenia for example which is written Հայաստան in armenian [2]? For some people it might be difficult to know that it's Armenia. What do you think? I know that alternative spellings and native names are missing for many countries, I'm currently working on adding them. Also, I'll add the native/official language(s) of each country. [1] https://github.com/JamieAppleseed/selectToAutocomplete |
Beta Was this translation helpful? Give feedback.
-
Not all people speak English, so they might be confused while selecting their locale. It might be useful if it is possible to see the English and native version of the country name parallel in the selector. I would recommend to provide both versions for different individual usecases. |
Beta Was this translation helpful? Give feedback.
-
Right, it's valid for non english speakers. If you want, feel free to start working on adding the native names as I'll be off for a few days. |
Beta Was this translation helpful? Give feedback.
-
I think it would be great to have a way to make Countries Hierarchical and have meta data describing whether they are countries or sovereign states. For the UK currently it says "alt-spellings":"GB,Great Britain,England,UK,Wales,Scotland,Northern Ireland". The full name of the UK is "The United Kingdom of Great Britain and Northern Ireland". It is not a country, it is a sovereign state. Great Britain also isn't a country, it's an island. There are three countries in Great Britain: England, Scotland and Wales. So the types I think needed are: Country, State, Sovereign State and potentially Nation and Union as well. Then it would be good to have a way to specify that England is within the UK and if you also have unions that it is within the EU. Another nice feature would be to list what land borders a country has. So you could specify that England borders Scotland and Wales for example. |
Beta Was this translation helpful? Give feedback.
-
From https://github.com/ProGNOMmers It would be wonderful if it would be possible to retrieve regions, provinces and cities. Something like: // Regions of country
// /rest/alpha2/it/regions ->
{ regions: [ "Abruzzi e Molise",
"Basilicata",
"Calabria",
"Campania",
"Emilia-Romagna",
"Friuli-Venezia Giulia",
"Lazio",
"Liguria",
"Lombardia",
"Marche",
"Piemonte",
"Puglia",
"Sardegna",
"Sicilia",
"Toscana",
"Trentino-Alto Adige",
"Umbria",
"Valle d'Aosta",
"Veneto" ] }
// Provinces of region
// /rest/alpha2/it/regions/Veneto/provinces ->
{ provinces: [ "Verona", "Venezia", ... ] }
// Cities of province
// /rest/alpha2/it/regions/Veneto/provinces/Venezia/cities ->
{ cities: [ { name: "Venezia", zip_codes: [ "30121", ... , "30176" ] },
{ name: "Chioggia", zip_codes: [ "30015" ] },
{ name: "San Donà di Piave", zip_codes: [ "30027" ] },
... ] }
// Cities of country by name
// /rest/alpha2/it/regions/Veneto/provinces/Venezia/cities ->
{ cities: [ { name: "Venezia", zip_codes: [ "30121", ... , "30176" ] },
{ name: "Chioggia", zip_codes: [ "30015" ] },
{ name: "San Donà di Piave", zip_codes: [ "30027" ] },
... ] } Cities could have metadata like f.i. zip codes, which are very useful. It is a huge work because recording and maintaining the whole list of regions, provinces and cities for every world country is hard, but it is a good target to be accomplished by an open source project. |
Beta Was this translation helpful? Give feedback.
-
I agree, I'll add this to the todo. I know that many entries in the dataset are not actual contries. I wanted to provide simple and factual data about world countries but I understand that more accuracy is needed. |
Beta Was this translation helpful? Give feedback.
-
Yes it is a huge work. First I want to continue to add more data at the country level (native and official names, official language, etc.) and add the master file as soon as possible (#12) to ease the contributions. Thank you for your help/feedback, I appreciate it! |
Beta Was this translation helpful? Give feedback.
-
@stephenpaulger in bd22b4a I have removed most of the names in |
Beta Was this translation helpful? Give feedback.
-
We can also add time zone data from http://timezonedb.com/download. |
Beta Was this translation helpful? Give feedback.
-
It would be really nice if there would be also a list of states per country such as the United States states. http://en.wikipedia.org/wiki/List_of_states_and_territories_of_the_United_States |
Beta Was this translation helpful? Give feedback.
-
@shanti2530 yes, this has been suggested #6 (comment) but it has not been done yet because the work is pretty huge. |
Beta Was this translation helpful? Give feedback.
-
@mledoze don't know if this is what you were looking for http://vikku.info/programming/geodata/geonames-get-country-state-city-hierarchy.htm |
Beta Was this translation helpful? Give feedback.
-
@shanti2530 this seems very good, thank you. I'll create an issue for this. Would you like to work on this? |
Beta Was this translation helpful? Give feedback.
-
Well in that case, the translations have to be exact :) There is no list of targeted languages, any language can be added to the list of translations. |
Beta Was this translation helpful? Give feedback.
-
Good to know, I'll look for better translation sources :) |
Beta Was this translation helpful? Give feedback.
-
Hi @mledoze capital:{
en: 'London',
fr: 'Londres'
} |
Beta Was this translation helpful? Give feedback.
-
@marc-ed-raffalli this change was already made by @blumk in d9e81cc. But translations for countries capital(s) are welcome :) |
Beta Was this translation helpful? Give feedback.
-
@mledoze The change allows to support multiple capitals as an array of strings, does not allow a mapping to multiple languages. I would propose something like:
edited with better example |
Beta Was this translation helpful? Give feedback.
-
Looking at the current
Creating separate language files brings the following benefits:
@marc-ed-raffalli @mledoze What do you guys think of this approach? |
Beta Was this translation helpful? Give feedback.
-
Do you mean 3 files? one pure data (language agnostic), and two translation files |
Beta Was this translation helpful? Give feedback.
-
Yes. Adding support for for two additional languages ( |
Beta Was this translation helpful? Give feedback.
-
@blumk Let's see what's the feedback from the other contributors |
Beta Was this translation helpful? Give feedback.
-
I find this idea interesting, but what would be your proposal for the directories/files structure? Given your example, would the |
Beta Was this translation helpful? Give feedback.
-
I guess there are two options:
I might prefer one file per language containing all 250 records for the following reasons:
E.g.
|
Beta Was this translation helpful? Give feedback.
-
My suggestion on "what to add next" would be NDD and IDD prefixes. |
Beta Was this translation helpful? Give feedback.
-
Thank your for your suggestion, I'll look into it. |
Beta Was this translation helpful? Give feedback.
-
@blumk I would like to move forward with your proposal to refactor translations to separate files; could you please open a new issue with your proposal? Thank you very much. |
Beta Was this translation helpful? Give feedback.
-
One thing I would really like to see added is the most commonly used native language / administrative language used in the country. For example, Norway has three different, unweighted native names: And there is no way to tell which one of the three is the commonly used, for example in language or country choosers. In this example, Norge would obviously be the way to go, not Noreg or Norgga. Can we either have a key for the official native name or a weighted/ranked list of languages in the country? Also, there are altSpellings: But I don't feel comfortable trusting on the first items in the list to be the most common, also it's pretty much a mix of abbreviations and languages, which is generally not very helpful in this case. Also, Norgga from the native array above is missing in the altSpellings array, which is confusing? |
Beta Was this translation helpful? Give feedback.
-
I would like to discuss here the data that should be added to this repository.
A similar project like 0xJS [1] contains a lot more data such as the land area or the latitude/longitude coordinates of each country.
Is it interesting/useful to have this kind of data too?
Data that can be added:
What would you like to be added?
Please let me know in the comments.
[1] http://oxjs.org/#doc/Ox.COUNTRIES
[2] source: http://opengeocode.org/
[3] source: https://oxjs.org/#doc/Ox.COUNTRIES
From the comments
Beta Was this translation helpful? Give feedback.
All reactions