Skip to content

booxood/china-address

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

china-address

Build Status

提供中国地址的 省 市 县 信息查询.

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

返回一个包含该地址所属省市县信息的数组.

License

The MIT License

About

提供省市县分词

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published