gpt4 book ai didi

google-maps - Google 是否曾从其 API 中删除某个地点或重新使用 placeId?

转载 作者:行者123 更新时间:2023-12-01 06:15:30 25 4
gpt4 key购买 nike

在 Google 地方信息中,每个地方都有一个特定的 placeId。我们存储这个 placeId 并根据需要使用它来检索有关该地点的信息。要使这种方法起作用,我们需要确认:

  1. 每个 placeId 是否唯一?
  2. Google 是否会重复使用 placeId?
  3. Google 是否会从其地点数据库中删除地点?
  4. 如果他们不删除某个地点,是否只是将其标记为“permanently_closed”?

提前感谢您的任何/所有帮助!

最佳答案

  1. 是的,每个地方都有一个唯一的 ID。

  2. 没有 google 不要重复使用 ID。对于这个世界上的每个地方,谷歌都有唯一的 ID。

  3. 视情况而定。在这里,谷歌是怎么说的,

A place can only be deleted if: 1. It was added by the same application as is requesting its deletion. 2. It has not successfully passed through the Google Maps moderation process, and is therefore visible only to the application that added it.

  1. “INVALID_REQUEST”是您搜索已删除的地点时得到的结果

还有更多信息,这里是来自 Google 的一个小通知:

Note: The id and reference fields are deprecated as of June 24, 2014. They are replaced by the new place ID, a unique identifier that can be used to compare places and to retrieve information about a place. The Places API currently returns a place_id in all responses, and accepts a placeid in the Place Details and Place Delete requests. Soon after June 24, 2015, the API will stop returning the id and reference fields in responses. Some time later, the API will no longer accept the reference in requests. We recommend that you update your code to use the new place ID instead of id and reference as soon as possible.

我希望我回答了您的问题,如果需要更多帮助,请评论,我会回复。引用:

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

关于google-maps - Google 是否曾从其 API 中删除某个地点或重新使用 placeId?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23871128/

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