1. 首页
  2. 数据库
  3. 其它
  4. PhraseGeocoder:用Python和SQL编写的简单地址解析器 源码

PhraseGeocoder:用Python和SQL编写的简单地址解析器 源码

上传者: 2021-04-01 15:15:24上传 ZIP文件 31.65KB 热度 15次
词组地理编码器 这是一个基于Python和Postgres的简单地理编码器,基于以下文章: : 要求 诗歌 Python 3.6+ Postgres 12 地理编码的国家地址文件( ) 安装 装诗 pip install poetry poetry install 用法 要设置GNAF,请先从上面的链接下载。然后使用以下代码,将gnaf_path和gnaf_aut_path中的路径替换为将数据提取到其中的文件夹的路径 # set up the GNAF database from phrasegeo import GNAFLoader # specify the name of the database gnaf = GNAFLoader("postgresql:///GNAF_VIC") # path to the auth and the state psv files gna
用户评论