Google PlaceID 指向不同的位置
我们观察到 Google 地点 ID 更改其指向的位置的问题。这是 PlaceID 在一定时间段后指向不同位置的预期行为吗?
3 月 14 日,我们使用 Google Maps API 获取了英国邮政编码 SW46LP 的 PlaceID。此 PlaceID 用于访问与其关联的地点详细信息。但是,现在返回一个不同的地址。
对于其他上下文,我们使用 https://maps.googleapis.com/maps/api/place/findplacefromtext
获取邮政编码的 placeId。
文档称 PlaceID 可能会随着时间的推移而改变。 Developers.google.com/maps/documentation/javascript/place-id
有没有办法确定某个 PlaceID 是否过期?
We have observed the issue that a Google Place ID changes the location it is pointing to. Is this the expected behavior that a PlaceID my point to a different location after a certain time period?
On 14th March, using Google Maps API, we fetched the PlaceID for a UK Postcode SW46LP. This PlaceID used to access the place details associated withe it. However, now this is returning a different address.
For additional context, we use the https://maps.googleapis.com/maps/api/place/findplacefromtext
to get the placeId for a postcode.
The documentations says that PlaceIDs may change over time. developers.google.com/maps/documentation/javascript/place-id
Is there any way to identify if a certain PlaceID is expiring?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
很抱歉回复延迟。
如前所述,PlaceID 可能会随着时间而变化,我们看到的问题更多是关于 placeID 在生成它们的同一小时内发生变化。问题不在于 placeID 变化,而是由于用户提供的地址不明确而导致不准确。
根据Google的建议,我们在地址中添加了国家代码,并尝试提供详细的地址以获得更准确的结果。
Sorry about the delayed response.
As mentioned, PlaceIDs may change over time, The issue we were seeing was more about placeIDs varying in the same hour of generating them. The issue was not with placeID varying but being inaccurate due to ambiguity in the address provided by the user.
Based on a suggestion by Google, we have added the country code to the address and tried to provide a detailed address for more accurate results.
您应该至少每 12 个月刷新一次存储的地点 ID。 https://developers.google.com/maps/documentation/ javascript/place-id#refresh-id
You should expect to refresh stored Place IDs at least every 12 months. https://developers.google.com/maps/documentation/javascript/place-id#refresh-id