SkillAgentSearch skills...

Localgovjp

list of local government in Japan (日本の地方自治体一覧オープンデータ) JSON/CSV

Install / Use

/learn @code4fukui/Localgovjp
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

localgovjp

日本語のREADMEはこちらです: README.ja.md

List of local government in Japan

Format

  • pid,pref,cid,city,citykana,lat,lng,url,phrase,lgcode
    • (Prefecture ID, Prefecture Name, City ID, City Name, City Name Kana, Latitude, Longitude, City Website URL, Catchphrase, Local Government Code)

For Web App

  • CSV
    • https://code4fukui.github.io/localgovjp/localgovjp-utf8.csv
    • https://code4fukui.github.io/localgovjp/prefjp-utf8.csv
  • JSON
    • https://code4fukui.github.io/localgovjp/localgovjp.json
    • https://code4fukui.github.io/localgovjp/prefjp.json

How to Update

with Deno

localgov

  1. make deno/c-localgovjp-utf8.csv
  2. check err and edit deno/c-localgovjp-utf8.csv
  3. make localgovjp-utf8.csv / localgovjp.json / localgovjp.js
  4. make trust by OpendataWithTrust (needs PRIKEY on .env)

pref

  1. make deno/c-prefjp-utf8.csv
  2. check err and edit deno/c-prefjp-utf8.csv
  3. make prefjp-utf8.csv / prefjp.json / prefjp.js
  4. make trust by OpendataWithTrust (needs PRIKEY on .env)

How to Verify

verify by OpendataWithTrust

deno --allow-import=code4fukui.github.io --allow-read=./ https://code4fukui.github.io/opendata-with-trust/verifyTrust.js localgovjp-utf8.csv
deno --allow-import=code4fukui.github.io --allow-read=./ https://code4fukui.github.io/opendata-with-trust/verifyTrust.js localgovjp.json
deno --allow-import=code4fukui.github.io --allow-read=./ https://code4fukui.github.io/opendata-with-trust/verifyTrust.js prefjp-utf8.csv
deno --allow-import=code4fukui.github.io --allow-read=./ https://code4fukui.github.io/opendata-with-trust/verifyTrust.js prefjp.json

Sample App

Data Sources

Updates

  • 2016-11-29 Checked all websites and updated
  • 2017-02-18 Removed duplicate for Tomakoma village
  • 2019-01-01 Updated
  • 2020-01-04 Updated
  • 2020-04-17 Updated
  • 2021-01-20 Updated
  • 2021-06-02 Fukuoka Nakagawa Town -> Fukuoka Nakagawa City
  • 2021-06-30 Corrected location information for Kiho Town, Mie
  • 2021-07-19 Corrected location for Etajima City, Hiroshima
  • 2021-10-31 Updated prefecture URLs, added ISO3155-2
  • 2021-11-01 Updated city URLs, added Local Government Code (lgcode)
  • 2023-03-09 Updated city URLs
  • 2026-01-01 Updated city URLs
  • 2026-03-09 Updated city URLs

License

View on GitHub
GitHub Stars31
CategoryDevelopment
Updated17d ago
Forks7

Languages

JavaScript

Security Score

75/100

Audited on Mar 16, 2026

No findings