Google是否从其API中删除了某个地点或重复使用了placeId? [英] Does Google ever remove a place from it's API or re-use the placeId?

查看:66
本文介绍了Google是否从其API中删除了某个地点或重复使用了placeId?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

In Google Places, each place has a specific placeId. We store this placeId and use it to retrieve information about the place as needed. For this approach to work, we need to confirm:

  1. 每个placeId都是唯一的吗?
  2. Google会重用placeId吗?
  3. Google曾经从地点数据库中删除一个地点吗?
  4. 如果他们不删除某个地方,是否只是将其标记为永久关闭"?

在此先感谢您提供所有帮助!

Thanks in advance for any/all help!

推荐答案

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

  1. Yes, each place has a unique ID.

没有Google不会重复使用ID.对于这个世界上的每个地方,google都有其唯一的ID.

No google do not re-use IDs. For each place in this world google have unique id for it.

只有在以下情况下才能删除地点:1.它是由同一应用程序添加的 如要求将其删除. 2.它没有成功通过 Google地图审核过程,因此仅对 添加它的应用程序.

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的一条小通知:

Also for more info, here is a small notice from Google:

注意:ID和参考字段自2014年6月24日起已弃用.它们由新的场所ID取代,新的场所ID是唯一的标识符,可用于比较场所和检索关于场所的信息.目前,Places API在所有响应中都返回一个place_id,并在Place Details和Place Delete请求中接受一个placeid. 2015年6月24日之后不久,API将停止在响应中返回id和reference字段.一段时间后,API将不再接受请求中的引用.我们建议您尽快更新代码,以使用新的地点ID代替ID和参考.

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.

我希望我回答了您的问题,需要更多帮助,请发表评论,我会答复. 参考:

I hope I answered your questions, for more help, kindly comment, I'll reply. Reference:

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

这篇关于Google是否从其API中删除了某个地点或重复使用了placeId?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆