china-address
v0.0.1
Published
China address
Downloads
6
Readme
china-address
提供中国地址的 省 市 县 信息查询.
Install
npm install china-address
Example:
var china = require('china-address');
var location = china.location('广东省广州市越秀区XXX路');
console.log(location); // [ '广东', '广州', '越秀' ]
API
location(address, [options])
- address
String
- options
Object
- postfix
Boolean
default = false
- postfix
返回一个包含该地址所属省市县信息的数组.