首页 > 解决方案 > 在 imperiumlabs GeoFirestore getAtLocation 中,半径单位是什么?米还是公里?

问题描述

我正在使用 imperiumlabs getAtLocation 的 geofirestore,我注意到有时查询会返回值,有时不会。

我怀疑它与半径单位有关,我设置为 10,认为这是以公里为单位,有时会返回结果,有时不会。

我将半径更改为 10000,现在它一直返回结果。

我在 GeoFirestore 中看到了一个问题/答案:getAtLocation not return the full list of documents

Aliton Oliveira 提到 getAtLocation 使用仪表。这个对吗?

解释类,我们应该将米传递给 getAtLocation 并将公里传递给 queryAtLocation。– Aliton Oliveira 20 年 5 月 26 日 17:40

标签: google-cloud-firestoregeofiregeofirestore

解决方案


推荐阅读