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/