Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bin/scripts/sync/import_japan_post_postcodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
-----------
Japan Post publishes the canonical 7-digit postcode-to-locality mapping at:

https://www.post.japanpost.jp/zipcode/dl/kogaki/zip/ken_all.zip
https://www.post.japanpost.jp/service/search/zipcode/download/kogaki/zip/ken_all.zip

The file (KEN_ALL.CSV) is **Shift-JIS encoded**, ~12 MB raw, ~125,000 rows
covering all 47 prefectures. Each row has 15 columns; the relevant ones are:
Expand Down Expand Up @@ -43,7 +43,7 @@
Usage
-----
python3 -c "import urllib.request; urllib.request.urlretrieve(
'https://www.post.japanpost.jp/zipcode/dl/kogaki/zip/ken_all.zip',
'https://www.post.japanpost.jp/service/search/zipcode/download/kogaki/zip/ken_all.zip',
'/tmp/ken_all.zip')"
unzip -o /tmp/ken_all.zip -d /tmp/

Expand Down