An open API service indexing awesome lists of open source software.

https://github.com/marc-ed-raffalli/world-geography-data

Data processor pulling data from different Git sources (incl. Unicode CLDR), extracting, processing and outputting countries GeoJson and localised data.
https://github.com/marc-ed-raffalli/world-geography-data

cldr continent countries geography-data geojson language localized-country-data

Last synced: 2 months ago
JSON representation

Data processor pulling data from different Git sources (incl. Unicode CLDR), extracting, processing and outputting countries GeoJson and localised data.

Awesome Lists containing this project

README

        

# World Geography Data

Gathers geography related data from different sources and merge it to different formats.

## Sources

### AshKyd/geojson-regions

https://github.com/AshKyd/geojson-regions

Country GeoJSON with following precision:
- [x] 10m
- [x] 50m
- [x] 110m

### mledoze / countries

https://github.com/mledoze/countries

- [x] area
- [x] borders
- [x] capital city (en only)
- [x] latlng
- [] geo.json
- [] topo.json
- [] svg flag

### CLDR - Unicode Common Locale Data Repository

- XML [CLDR downloads](http://cldr.unicode.org/index/downloads)
- JSON [Github](https://github.com/unicode-cldr),
*[repos structure]([Github](https://github.com/unicode-cldr/cldr-json))*

**Main Locales**

- `af agq ak am ar as asa ast az`
- `bas be bem bez bg bm bn bo br brx bs`
- `ca ccp ce cgg chr ckb cs cu cy`
- `da dav de dje dsb dua dyo dz`
- `ebu ee el en eo es et eu ewo`
- `fa ff fi fil fo fr fur fy`
- `ga gd gl gsw gu guz gv`
- `ha haw he hi hr hsb hu hy`
- `id ig ii is it`
- `ja jgo jmc`
- `ka kab kam kde kea khq ki kk kkj kl kln km kn ko kok ks ksb ksf ksh kw ky`
- `lag lb lg lkt ln lo lrc lt lu luo luy lv`
- `mas mer mfe mg mgh mgo mk ml mn mr ms mt mua my mzn`
- `naq nb nd nds ne nl nmg nn nnh nus nyn`
- `om or os`
- `pa pl prg ps pt`
- `qu`
- `rm rn ro rof ru rw rwk`
- `sah saq sbp sd se seh ses sg shi si sk sl smn sn so sq sr sv sw`
- `ta te teo tg th ti tk to tr tt twq tzm`
- `ug uk ur uz`
- `vai vi vo vun`
- `wae wo`
- `xog`
- `yav yi yo`
- `zgh zh zu`

See complete [Locale list](./locales.md) for more details

#### cldr-core

https://github.com/unicode-cldr/cldr-core.git

- [x] country ISO code
https://github.com/unicode-cldr/cldr-core/blob/master/supplemental/codeMappings.json

- [x] currency data: period of usage
https://github.com/unicode-cldr/cldr-core/blob/master/supplemental/currencyData.json

- [x] telephone country codes
https://github.com/unicode-cldr/cldr-core/blob/master/supplemental/telephoneCodeData.json

- territory grouping (e.g. EU, UN)
https://github.com/unicode-cldr/cldr-core/blob/master/supplemental/territoryContainment.json

- info:
- [x] population
- [x] literacy %
- [x] language
- population %
- status: official / regional official
https://github.com/unicode-cldr/cldr-core/blob/master/supplemental/territoryInfo.json

- week data:
- [x] first day
- [x] weekend start/end
https://github.com/unicode-cldr/cldr-core/blob/master/supplemental/weekData.json

#### cldr-dates-full

https://github.com/unicode-cldr/cldr-dates-full.git

- Gregorian calendar:
- [x] month
- [x] day
- [x] dateFormats
- [x] timeFormats
https://github.com/unicode-cldr/cldr-dates-full/blob/master/main/fr/ca-gregorian.json

- localized capital names (timezones exemplarCity)
https://github.com/unicode-cldr/cldr-dates-full/blob/master/main/fr/timeZoneNames.json

#### cldr-localenames-full

https://github.com/unicode-cldr/cldr-localenames-full.git

- [x] localized language names
https://github.com/unicode-cldr/cldr-localenames-full/blob/master/main/fr/languages.json

- [] localized script names
https://github.com/unicode-cldr/cldr-localenames-full/blob/master/main/fr/scripts.json

- [x] localized territory names
https://github.com/unicode-cldr/cldr-localenames-full/blob/master/main/fr/territories.json

#### cldr-numbers-full

https://github.com/unicode-cldr/cldr-numbers-full.git

- [x] currency names, symbol
https://github.com/unicode-cldr/cldr-numbers-full/blob/master/main/fr/currencies.json

## Output

## GeoGame

Output the data for the [World Geography Game](https://github.com/marc-ed-raffalli/geo-game) project.

- List of languages with translated name
- List of translated continent name by locale
- Translated game data (country name, capital) by continent by locale
- Status (count, pct, missing) of the support of one language compared to English
- GeoJson files (generic data, nothing translated)

## Notes

### CLDR Known Issues

See revision notes for CLDR 32: http://cldr.unicode.org/index/downloads/cldr-32

> Known Issues
> 3. Subdivision Names
> The draft subdivision names were imported from wikidata.
> Names that had characters outside of the language's exemplars were excluded for now.
> Names that would cause collisions were allowed, but marked with superscripted numbers.
> The goal is to clean up these names over time.

### Locale Path issues

The targeted locale is taken from user input.
The following sources use the locale in the path:

- cldr-dates-full
- cldr-localenames-full
- cldr-numbers-full

The variations are big enough not to be handled in a case by case basis.
The first part of the locale is lowercase, the second varies: `az-Cyrl`, `en-150`, `en-US-POSIX`...

## Special thanks

Special thanks to the following libraries and developers!

- [Simple Git](https://github.com/steveukx/git-js)
- [Bluebird](http://bluebirdjs.com/)
- [command-line-args](https://www.npmjs.com/package/command-line-args)
- [command-line-usage](https://www.npmjs.com/package/command-line-usage)
- [Inquirer.js](https://github.com/SBoudrias/Inquirer.js)