dev-master
9999999-devJapan’s regions, prefectures and cities library.
MIT
The Requires
- php >=5.4.0
The Development Requires
address internationalization localization city postal region japan prefecture
Wallogit.com
2017 © Pedro Peláez
Japan’s regions, prefectures and cities library.
Current Status: dev-master (https://github.com/edgecreativemedia/japanaddressing), (*1)
This is currently underdevelopment.., (*2)
A PHP 5.4+ address library for Japan’s address/postal system in both English & Japanese. It is powered by Japan Post’s csv dataset., (*3)
The library stores, sets and manipulates regions, prefectures and cities, as well as performing a lookup function for full Japanese addresses via it’s postal code (yubin-bango) in either language., (*4)
Features:, (*5)
The dataset for postal-code addresses are stored locally in JSON format. To avoid loading over 50MB of data, the dataset is split in to 1000 JSON files per the first 3 digit postal code. This results in lookup functions being super fast and reducing server resources by only loading a maximum file size of 650KB. The dataset can be generated/updated via the locally stored script (/scripts/update-repository.php) by using Japan Post’s CSV files which are downloaded automatically when outdated., (*6)
The datasets for subdivisions are stored locally in JSON format, from Google's Address Data Service and also Japan Post’s CSV files (http://www.post.japanpost.jp/zipcode/dl/kogaki/zip/ken_all.zip)., (*7)
Japan’s regions, prefectures and cities library.
MIT
address internationalization localization city postal region japan prefecture