【问题标题】:Google Places API - Which data can i store?Google Places API - 我可以存储哪些数据?
【发布时间】:2013-03-12 09:10:07
【问题描述】:

我即将创建一个使用 Google Places Api 的应用程序。

只要我理解条款,就不允许在我的数据库中存储地点数据 如名称、纬度、经度或详细信息。是对的吗 ?

我发现允许“缓存”数据而不是存储数据。

为了在我的网站上显示“上次使用的地点”,我需要存储一些东西(例如地点的参考 ID)。

关于某个地点的哪些信息可以存储在我的数据库中?

提前致谢!

【问题讨论】:

    标签: google-places-api google-places


    【解决方案1】:

    您只能将地点 ID 存储在数据库中。每次要显示数据时都必须请求其他所有内容。

    【讨论】:

    • 如果没有上下文,存储地点 ID 有什么用?如果用户从结果中拨打了某个电话号码并看到了它的名字,是否可以存储他拨打的电话号码和地点 ID 之间的映射以及地点名称?
    【解决方案2】:

    您可以存储来自 google 地方响应的 place_id。如果您想对这些数据进行一些操作,您可以将 place_id 与 user_id 一起存储在本地表中。例如,如果您想从谷歌回复中喜欢任何餐厅:

    user_id: 1,
    place_id: "xyz",
    isLiked: true
    

    您可以在本地数据库中进行上述设计。您可以从此表中获取“place_id”并从 google places api 获取完整的餐厅数据。

    【讨论】:

      【解决方案3】:

      据我了解,您可以存储 APi 中的所有内容:

      (b) No Pre-Fetching, Caching, or Storage of Content. You must not pre-fetch, cache, or store any Content, except that you may store: (i) limited amounts of Content for the purpose of improving the performance of your Maps API Implementation if you do so temporarily (and in no event for more than 30 calendar days), securely, and in a manner that does not permit use of the Content outside of the Service; and (ii) any content identifier or key that the Maps APIs Documentation specifically permits you to store. For example, you must not use the Content to create an independent database of "places" or other local listings information.

      但您不能存储用户数据,除非得到同意:

      (i) Your Maps API Implementation must notify the user in advance of the type(s) of data that you intend to collect from the user or the user's device. Your Maps API Implementation must not obtain or cache any user's location in any manner except with the user's prior consent. Your Maps API Implementation must let the user revoke the user's consent at any time.

      引用自google places terms(是的,和谷歌地图一样)

      查看这两个链接:

      【讨论】:

      • 奇怪的是你是如何得出这个结论的,因为第一句话说没有预取、缓存或存储内容。您唯一可以存储的是地点 ID。
      猜你喜欢
      • 1970-01-01
      • 2015-03-30
      • 1970-01-01
      • 2018-09-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-03-05
      相关资源
      最近更新 更多