有没有办法看看两个“;参考文献“;在Google Places API中引用相同的位置
Is there a way to see if two "references" reference the same place in Google Places API?
来自Google Places文档
引用包含一个唯一的令牌,您可以使用该令牌在place Details请求中检索有关此位置的其他信息。您可以存储此令牌,并在将来的任何时候使用它来刷新有关此地点的缓存数据,但不能保证在不同的搜索中为任何给定地点返回相同的令牌。
你可以使用引用来检索关于一个地方的信息,但如果你将来在搜索中得到这个地方,它就不会有相同的引用。多个引用将引用同一个位置。有没有一种方法可以测试我存储的两个引用是否用于同一个地方?当我存储引用时,它会在我的数据库中创建冗余。
恐怕一个地方唯一明显的特征是细节请求返回的google+-url
检查id
值,该值对于一个位置始终相同。
相关文章:
- 在自动完成中使用Google Maps Places API;API不工作
- 从Chrome扩展加载Places API库
- 带有新API密钥的Google Places Library OVER_QUERY_LMIT
- Google Places API显示雷达搜索中的位置图标/图像
- 如何使用Google Places Javascript API搜索附近的位置(自动从浏览器获取坐标)
- 如何使用地点ID从Google Places JS API检索地点详细信息
- 在Google Places API中为每个位置类型单独标记
- 将Google Places API与Rails应用程序集成
- 当至少有20个搜索结果时,只呈现10个搜索结果?使用Google Places API
- 如何使用带有搜索按钮的Google Places API
- 如何使用Google Places API获取邮政编码
- “;位置搜索框”;在Google Places API中
- Ajax and Google Places API getting json
- Google Places API,结果的附加标记(手动添加)
- 使用 Google Places API 自定义 NearBuy Places
- Google Places API - 雷达按名称搜索
- Google Maps Places API: TypeError: autocomplete is undefined
- 在 Google Places API 上获取“未捕获的类型错误:无法读取 null 的属性'值'”
- Google Places API - 地址和电话号码
- 谷歌地图Api附近搜索-为什么Google.Maps.places.RankBy.DISTANCE返回的结果更少