gpt4 book ai didi

python - 将纬度/经度坐标列表转换为公司名称

转载 作者:太空宇宙 更新时间:2023-11-04 05:57:30 25 4
gpt4 key购买 nike

我以前没有使用过 Python,但我听说这将是一种用于此过程的好语言。我有一个 Lat/Long 坐标列表,我需要将其转换为公司名称。我可以在哪里找到有关如何完成此过程的文档?有什么想法吗?

例子:

文档:LatLong.txt(有一个按列分隔的纬度/经度列表)我需要针对最大半径为 30 的 Places API 运行该列表,并返回该半径内的所有企业(BusinessName、Addy、Phone 等)。

    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)

我在玩什么..

最佳答案

Google 有一些非常好的入门文档:

https://developers.google.com/places/training/basic-place-search

这个答案也可能有帮助:https://stackoverflow.com/a/21924452/1393496

您应该编辑您的问题并包含更多详细信息,您尝试了什么?什么起作用了?什么不起作用?

关于python - 将纬度/经度坐标列表转换为公司名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26897197/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com