Skip to content

vominhtam/list-of-cities-in-japan

 
 

Repository files navigation

List of Cities in Japan

A script that generates a list of cities/towns in Japan based on the official 都道府県コード及び市区町村コード version 2019/05/01. It includes English names.

Build

docker --version
Docker version 19.03.1, build 74b1e89

docker-compose --version
docker-compose version 1.24.1, build 4667896b
# https://github.com/nobuf/langlinks-server must be up and running
curl -v http://localhost:8080
#
git clone https://github.com/nobuf/list-of-cities-in-japan.git
cd list-of-cities-in-japan
docker-compose up --build
ls -l build

Download

Column Reference

prefectures.csv

  • id — 5 digits code that represents the prefecture
  • prefecture_id — 2 digits version of id
  • prefecture_en — Name in English
  • prefecture_ja — Name in Japanese

cities_in_japan_2018.csv

  • id — 5 digits code that represents the city/town (市区町村)
  • prefecture_id — 2 digits prefecture ID
  • city_en — Name in English. The translation comes from Wikipedia data via langlinks-server. Some names are like "Hakodate, Hokkaido" with its prefecture name while some of them are just "Otaru" without Hokkaido.
  • city_ja — Name in Japanese.
  • special_district_jaSome big cities have special districts (特別区) within the city.

Contributing

If you have any ideas let @nobuf know by opening an issue. Pull requests are always welcome.

License

MIT

About

A script to build a list of cities in Japan in CSV

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 81.8%
  • Dockerfile 10.7%
  • Shell 7.5%