How to do geocoding offline in python?

半城伤御伤魂 提交于 2020-01-24 08:54:12

问题


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?

For example, given an input: The White House, Pennsylvania Avenue Northwest, Washington, DC

The output should be: 38.897797, -77.036530


回答1:


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.

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

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



来源:https://stackoverflow.com/questions/30859223/how-to-do-geocoding-offline-in-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!