Python 将横向/纵向坐标列表转换为企业名称
我以前没有使用过Python,但是我被告知这将是一种用于此过程的好语言。我有一个横向/纵向坐标列表,需要将其转换为企业名称。在哪里可以找到关于如何完成此过程的文档 例如: Doc:LatLong.txt(有一个由列分隔的lat/long列表) 我需要对PlacesAPI运行该列表,最大半径为30,并返回该半径内的所有业务(BusinessName、Addy、Phone等)Python 将横向/纵向坐标列表转换为企业名称,python,google-maps-api-3,Python,Google Maps Api 3,我以前没有使用过Python,但是我被告知这将是一种用于此过程的好语言。我有一个横向/纵向坐标列表,需要将其转换为企业名称。在哪里可以找到关于如何完成此过程的文档 例如: Doc:LatLong.txt(有一个由列分隔的lat/long列表) 我需要对PlacesAPI运行该列表,最大半径为30,并返回该半径内的所有业务(BusinessName、Addy、Phone等) from googleplaces import googleplaces YOUR_API_KEY =
from googleplaces import googleplaces
YOUR_API_KEY = 'aa262fad30e663fca7c7a2be9354fe9984f0b5f2'
google_places = googleplaces(YOUR_API_KEY)
query_result = google_places.nearby_search(lat_lng=41.802893, -89.649930,radius=20000)
for place in query_result.places:
print (place.name)
print (place.geo_location)
print (place.reference)
place.get_details()
print (place.local_phone_number)
print (place.international_phone_number)
print (place.webite)
print (place.url)
这就是我在玩的东西。谷歌有一些非常好的入门文档: 这个答案也可能有助于:
你应该编辑你的问题并包括更多细节,你尝试过什么?什么有效?什么不起作用?您可以共享示例数据吗?或者你到目前为止试过的代码