过滤位置距离半径的GeoPoint - Firestore

时间:2017-10-10 20:35:41

标签: java android firebase google-cloud-firestore

如何在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

注意: 在实时我可以选择使用GeoFire,但在Firestore我找不到任何方法。

您如何通过数据库在距离半径范围内根据您的位置查找公司?

1 个答案:

答案 0 :(得分:0)

我们还没有support this,尽管我们正在努力。鉴于正在努力,我们还没有ported GeoFire to Firestore

相关问题