Discover Packages
gitee.com/baixudong/gospider
city
package
Version:
v0.0.0-...-b1b21d8
Opens a new window with list of versions in this module.
Published: Oct 17, 2023
License: LGPL-3.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
功能概述
基于前缀树,快如闪电的全国省市县提取库
全国省市县下载
支持自定义省市县映射关系
只能打分,根据省市县出现的次数选举最大可能
部分城市模糊匹配,尽最大可能匹配结果
Expand ▾
Collapse ▴
Documentation
¶
type City struct {
Name string `json:"name"`
Value int64 `json:"value"`
Children []Xian `json:"children"`
}
type Province struct {
Name string `json:"name"`
Value int64 `json:"value"`
Children []City `json:"children"`
}
type Xian struct {
Name string `json:"name"`
Value int64 `json:"value"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.