问题
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