【问题标题】:Get the google plus URL based on place_id of Google Places API?根据 Google Places API 的 place_id 获取 google plus URL?
【发布时间】:2014-08-29 03:55:51
【问题描述】:

如何根据我从 maps.googleapis.com/maps/api/place 返回的 json 中获取的 place_id 获取对应 google 地点的 plus.google URL 页面?

【问题讨论】:

    标签: google-places-api


    【解决方案1】:

    也许您可以通过 place_id 使用 Place Details api?

    https://developers.google.com/places/documentation/details

    【讨论】:

    【解决方案2】:

    这似乎是旧帖子,但想添加更多细节。 'places' details API 提供 google plus URL:

    引用https://developers.google.com/places/documentation/details:

    url 包含此地点的官方 Google 页面的 URL。如果存在 Google+ 页面,这将是该机构的 Google+ 页面,

    一旦你有了place_id,就使用:

    https://maps.googleapis.com/maps/api/place/details/json?key=your_key&placeid=interested_place_id

    然后寻找 'url' 键。

    如果您想从该页面提取详细信息,这是一个不同的问题。我不知道 google 是否有这方面的 API。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-02-02
      • 1970-01-01
      • 2014-08-26
      • 1970-01-01
      • 2018-07-14
      相关资源
      最近更新 更多