如何在 Firestore 数据库中搜索定义的距离半径内的位置纬度和经度。
示例数据库:
COMPANIES
- COMPANY 1
--Lat: 12345
--Long: 6789
- COMPANY 2
--Lat: 457851
--Long: 654214
- COMPANY 3
--Lat: 12345
--Long: 6789
- COMPANY 4
--Lat: 12463
--Long: 65487
注意: 在 Real Time 中,我可以选择使用 GeoFire,但在 Firestore 中我没有找到任何方法。
您如何通过数据库并根据您的位置在一定距离范围内找到公司?
最佳答案
我们还没有 support this尽管我们正在努力。我们也没有ported GeoFire to Firestore鉴于这一努力正在进行中。
关于java - 以距离半径过滤位置 GeoPoint - Firestore,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46675550/