Worldcities
A convenient wrapper for the GeoNames database of world cities data.
Install / Use
/learn @OpenDataFormats/WorldcitiesREADME
World Cities
More details can be found in the README in dist/README.md
Updating Source Data
./bin/pull.data.sh
./bin/convert.all.sh
Testing
npm test
Publishing
./bin/pull.data.sh
./bin/convert.all.sh
npm test
cd ./dist
npm publish
Folder Structure
| Folder | Description |
| --- | --- |
| ./bin | Shell scripts to pull and convert the datasets to update for republishing. |
| ./converters | Scripts to convert source TSV files into JSON. |
| ./data | Source TSV data files. |
| ./dist | "Compiled" output for creating the npm package. |
| ./dist/data | The converted and formatted JSON. |
| ./dist/data/flags | SVG files of the flags of each country. |
| ./dist/data/geojson | The GeoJSON of the shape of each country. |
| ./src | The TypeScript source and tests. |
