如何在python中离线地理编码? [英] How to do geocoding offline in python?

查看:241
本文介绍了如何在python中离线地理编码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理计算机上的某些空间数据,并且由于数据是机密的,因此该计算机没有Internet连接.那么如何使用python离线进行地理编码?

I am working on some spatial data on a computer and since the data is confidential, there is no internet connection for that computer. So how do I use python to do geocoding offline?

例如,给定输入: 位于华盛顿特区西北宾夕法尼亚大道的白宫

输出应为: 38.897797,-77.036530

推荐答案

术语地理编码"是指将正确的街道地址(例如"CA Main St,圣地亚哥,CA 92101")转换为经/纬度位置.另一方面,您的示例是通常所说的兴趣点(POI)解析",其中兴趣点是通过名称而不是地址给出的.

Term "geocoding" refers to converting a proper street address like "123 Main St, San Diego, CA 92101" into a lat/lon location. Your example, on the other hand, is of what is typically called "point of interest (POI) resolution", where the point of interest is given by its name and not by address.

有一些离线地理编码选项,包括 YAddress (警告:我在该公司工作做到了.

There are options for off-line geocoding, including YAddress (ad warning: I work for the company that makes it).

离线POI解决方案的选项在 https://stackoverflow.com/questions/1875255中进行了讨论/open-source-poi-database

Options for off-line POI resolution are discussed in https://stackoverflow.com/questions/1875255/open-source-poi-database

这篇关于如何在python中离线地理编码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆