javascript - 有没有办法查看两个 "references"是否引用 Google Places API 中的同一地点?

标签 javascript google-maps google-maps-api-3 google-places-api

来自Google Places documentation

reference contains a unique token that you can use to retrieve additional information about this place in a Place Details request. You can store this token and use it at any time in future to refresh cached data about this Place, but the same token is not guaranteed to be returned for any given Place across different searches.

您可以使用引用来检索有关某个地点的信息,但如果您以后在搜索中找到该地点,它将不会具有相同的引用。多个引用将引用同一位置。有没有办法测试我存储的两个引用是否针对同一位置?当我存储引用时,它会在我的数据库中创建冗余。

最佳答案

恐怕某个地点的唯一显着特征是 details-request 返回的 google+ -url

关于javascript - 有没有办法查看两个 "references"是否引用 Google Places API 中的同一地点?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22977221/

相关文章:

javascript - 使用jquery创建一个不刷新但后退按钮仍然有效的网站

javascript - 无法使用 PHP 读取 ajax 请求

javascript - 未捕获的类型错误 : Cannot read property 'setDirections' of undefined

google-maps - 在谷歌地图中查找最近的学校以获取邮政编码

google-maps - MarkerClusterer 完成后触发事件

google-maps - 使用 Google Maps API 查找最近点

javascript - 基于标题搜索使用JavaScript修改JSON对象

javascript - webpack 动态模块加载器通过 require

google-maps - Dart + Polymer + google_maps

google-maps - Location.requestForegroundPermissionsAsync 不是函数