Giter Club home page Giter Club logo

Comments (3)

akebe avatar akebe commented on May 30, 2024

感谢反馈,所提地址解析不准的问题已经在1.2.6版本修复,这是这个库目前所用解析方案的一个弊端引起,遍历地区树,命中可信结果后直接跳出循环,但这个可信只是相对而言,容易因为提前跳出而导致真实地区未经解析造成错误,但如果每次解析都全部遍历一遍,那效率太低了,只能通过大家反馈修复边界问题达到改善。
目前的解决方案是针对解析出来的前半截被当作name字段的内容如果包含省份名称,就进行二次解析进行修复,这样有留下一个后遗症,就是**伊宁市上海城徐汇苑可以解析,但是伊宁市上海城徐汇苑就解析不了,设想过如果用city_list去遍历可能造成新的边界问题,像伊宁上海城徐汇,到底是上海市徐汇区叫伊宁的,还是**伊宁市上海城徐汇呢,所以这个问题只能修复到这个地步了。

2.关于重庆县的那个问题,这个库的地区列表来自vant area.js,在这个数据源中重庆下辖是5001xx重庆市5002xx构成的,所以解析出来也是这个结构。这次更新优化了排序算法,现在重庆忠县已经能正确的把500233结果靠前了。

3.这个问题之前考虑过,这段时间会抽空完善配置的问题,在下个版本v1.3.x将允许传入自定义area数据,应该能解决你的问题

from address-parse.

small-onion avatar small-onion commented on May 30, 2024

1、所以现在的情况是只能根据反馈针对性的优化是吗?那我这边有很多识别不准确的,需要我遇到不能识别的情况,分阶段性的全部反馈吗?
比如:“湖北神农架太阳村10组” 现在就识别不出来。因为“神农架”是全称是“神农架林区”,所以必须要写“神农架林区”才能识别,写“神农架”就不行。但实际情况中很少有能写完整。
又比如: 很多城市有四川路、南京路、北京路之类的情况。
2、重庆县级行政区的问题。1.2.6版本还是识别不了“重庆忠县忠州镇梅湾村13组”。是我没搞对吗?
3、您说会在后续版本中允许传入自定义area。但我是说的“省直辖县”、“自治区直辖县级行政区划”是在City字段中的。不知道是不是我理解错了。

再次感谢

from address-parse.

akebe avatar akebe commented on May 30, 2024

1.神农架问题已在v1.2.7版本修复,库内生成了一个短名列表,因为林区这个区划名比较特殊,之前没注意到,未经特殊处理被正常清洗后的短名是神农架林 导致神农架匹配失败,现在已修复。
正常区市不用携带区划后缀也能解析。

2.亲测可行,必须开启parseAll

3.自定义area是指自定义库内的area.js文件,包含city

from address-parse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.