API for finding zipcode in Taiwan
This package is reference from mosky .
Installation
$ npm install addrtozip
Usage
First you have to require the package.
var addrtozip = ;
Send an address to query zipcode.
addr
: Required. An address for finding zipcode
callback
: Required. Callback will return a json contain zipcode and address.
addrtozip;
Example
var addrtozip = ;addrtozip
And you will get a json data, like this.
Gradual
A legal address contain city(縣市), area(鄉鎮市區), street(路街巷弄號), and exclude village(村里) and neighborhood(鄰). We also can find informal zipcode gradually, but that will reduce the precision.
var addrtozip = ;addrtozip
Get city list
Just get city list
var addrtozip = ;addrtozip
Get cityareas list
Just get cityareas list
var addrtozip = ;addrtozip
If any adress is legal, but return wrong zipcode. Please let me know. Thanks.