2017 © Pedro Peláez
 

library japanaddressing

Japan’s regions, prefectures and cities library.

image

edgecreativemedia/japanaddressing

Japan’s regions, prefectures and cities library.

  • Thursday, March 10, 2016
  • by edgecreativemedia
  • Repository
  • 2 Watchers
  • 1 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

JAPAN ADDRESSING

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)

  • Super fast address lookup via postal-code.
  • Subdivision translations for all regions, prefectures and cities in Japan with kanji, romaji and English.
  • Translation for full Japanese addresses, but limited for special (JIGYOSYO) addresses in English.
  • Easy PHP script for updating datasets, with checking current and available new CSV files from Japan Post’s website, as well as downloading the files required.

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)

Integrations

The Versions

10/03 2016

dev-master

9999999-dev

Japan’s regions, prefectures and cities library.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

address internationalization localization city postal region japan prefecture