Skip to content

Conversation

@IceMimosa
Copy link
Member

@IceMimosa IceMimosa commented May 18, 2022

新增 GeocodingX 类,包含两个输入

  • dataClassPath(String):自定义地址文件classpath路径,默认使用内置地址
  • strict(Boolean):是否strict模式,默认false。当发现没有省和市,且匹配的父项数量等于1时,能成功匹配。
    • true: 严格模式,当发现没有省和市,且匹配的父项数量大于1时,返回null
    • false: 非严格模式,当发现没有省和市,且匹配的父项数量大于1时,匹配随机一项省和市
  • addRegionEntry() 方法新增 replace 参数,表示是否替换旧地址,默认为true

@IceMimosa IceMimosa linked an issue May 18, 2022 that may be closed by this pull request
@IceMimosa IceMimosa merged commit 110af2a into master May 19, 2022
@IceMimosa IceMimosa deleted the custom-geo branch May 19, 2022 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants