Comments (1)
因为内部的解析顺序是优先通过parseByProvince
省市区三级匹配,这是最快的。
为了能实现模糊匹配,在解析中是把区域后缀去掉再进行解析的,邵阳县|邵阳市===邵阳
这就导致了第三级与第二级地区名字一致的情况下,就比如你提供的例子湖南省邵阳市邵阳县
,如果没有补齐会导致第三级地区邵阳县
被识别为第二级地区邵阳市
的情况,因为能匹配到省跟市,函数即判断为匹配成功,不会执行后续的解析了,这种情况目前只能通过parseAll强制执行逆解析parseByArea
,来得到正确的结果
from address-parse.
Related Issues (20)
- 新地区修改 HOT 1
- [Feature] 新增隐私号解析及可关闭智能改地址功能 HOT 1
- 牡丹江市解析错误
- 部分地区解析失败 HOT 1
- 识别不出来所在的区 HOT 1
- 杭州新增了临平区
- 对大学地址识别不对
- 杭州市临平区识别不了
- 杭州市钱塘区识别不了
- 东莞中山海南识别有误,相关内容为编码 level4 镇级 HOT 1
- 城市代码需要更新
- 重庆地区所有区域名称叫XX县的都无法识别!
- 省直辖县的,第二级能否直接匹配到县的名称
- 姓名识别不准确
- 虚拟号 时无法识别正确,会把 - 后面的数字去掉
- ExcludeKeys是否设置为使用者可配置
- 地址解析错误 HOT 1
- 作者你能更新一下省市区最近数据吗有些城市区无法解析 HOT 1
- 姓名识别出错 安徽省 芜湖市 繁昌区 荻港镇 姓名王刚 手机号17585808103
- 陈妍 18466105380-222288 北京昌平区史各庄街道昌艺园小区东侧北京农商银行 识别不出来
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from address-parse.