Skip to content

Latest commit

 

History

History
47 lines (30 loc) · 951 Bytes

README.md

File metadata and controls

47 lines (30 loc) · 951 Bytes

zipcode_jp

CircleCI

zipcode_jp provides Japan zip code database/API that is build by JSON file structure. You can setup your own database/API on your Web storage.

How to setup.

  • Clone this repository.
  • Publish /docs directory.

Directory structure

docs/
  zip_code/
    001/
      0010000.json
      0010010.json
      ...

JavaScript API

<script type="text/javascript" src="https://your.api.server/api.js"></script>

<script type="text/javascript">
  ZipCodeJp.setZipCodeBaseUrl('https://your.api.server/zip_code');
  ZipCodeJp.getAddressesOfZipCode('6000000', function(err, addresses) {console.log(err); console.log(addresses)});
</script>

Demo

https://jsfiddle.net/kmdsbng/jxratmsL/2/

License

MIT

Thanks

zipcode_jp uses x-ken-all.csv provided by zipcloud.