address-divide
v0.0.2
Published
This package used for get address information as an array, which only contains province,city, county,and district, for an address string
Downloads
4
Readme
Installation
npm install -s address-divide
Usage
var address = require('address-divide');
const str = '新疆乌鲁木齐市沙依巴克区';
const result = address(str);
console.log(result); // ['新疆', '乌鲁木齐市', '沙依巴克区']
str = '上海市浦东新区长泰广场';
result = address(str);
console.log(result); // ['上海市', '浦东新区']
str = '山东省菏泽市巨野县';
result = address(str);
console.log(result); // ['山东省', '菏泽市', '巨野县']