【问题标题】:Converting a List of Lat/Long coordinates to a business name将经/纬度坐标列表转换为公司名称
【发布时间】:2014-11-12 21:44:34
【问题描述】:

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

例子:

Doc: 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)

是我在玩的东西..

【问题讨论】:

  • 你能分享样本数据吗?或到目前为止您尝试过的代码

标签: python google-maps-api-3


【解决方案1】:

Google 有一些很好的入门文档:

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

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

您应该编辑您的问题并包含更多详细信息,您尝试过什么?什么有效?什么没用?

【讨论】:

    猜你喜欢
    • 2020-02-23
    • 1970-01-01
    • 1970-01-01
    • 2013-09-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多