将Lat / Long坐标列表转换为公司名称

时间:2014-11-12 21:44:35

标签: python google-maps-api-3

我之前没有使用过Python,但是我被告知这将是一个很好的语言来用于这个过程。我有一个Lat / Long坐标列表,我需要将其转换为商家名称。我可以找到有关如何完成此过程的文档的任何想法吗?

示例:

Doc:LatLong.txt(列有lat / long列的列) 我需要针对Places API运行该列表,最大半径为30,并返回该半径内的任何业务(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)

是我玩的..

1 个答案:

答案 0 :(得分:1)

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

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

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

您应该编辑您的问题并提供更多详细信息,您尝试了什么?什么有用?什么没有用?

相关问题