问题
I have to Geo Code 1000s of addresses to obtain Lats and Longs so that I can later run some data and geo analysis on those addresses.
In the past, I used Google's API to obtain this information, however, now Google requires Credit card information to generate API key. Even then it has limit of about 60 address per hour or per day (can't remember exact limit).
I was wondering if someone can guide me how to go about obtaining Lat and Long for 1000s of address with python?
回答1:
SmartyStreets has a tool for that.
SmartyStreets also has a Python SDK you can use. You can look up thousands of addresses in seconds or less.
Full disclosure: I am a software developer for SmartyStreets, and I wrote the Python SDK
回答2:
geopy is an open-source Python 2 and 3 client for several popular geocoding web services. To name a few: Here, MapBox, Nominatim, Arcgis, Geonames, TomTom. Check the complete list with usage examples:
https://geopy.readthedocs.io/en/stable/#module-geopy.geocoders
Some of them require an API Key to be passed as an argument. Others, don't. For example, Nominatim only requires defining a user_agent
for your App.
Installation via PyPi
pip install geopy
https://pypi.org/project/geopy/
来源:https://stackoverflow.com/questions/55369970/excluding-google-maps-what-is-the-best-way-to-geo-code-1000-addresses-in-pytho