在距离半径中过滤位置GeoPoint-Firestore [英] Filter location GeoPoint in distance radius - Firestore
本文介绍了在距离半径中过滤位置GeoPoint-Firestore的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在Firestore数据库中搜索定义的距离半径内的纬度和经度位置.
How to search the Firestore database for the location Latitude and Longitude within a defined distance radius.
样本数据库:
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中,我找不到任何方法.
Note: At Real Time I had the option to use GeoFire, but at Firestore I did not find any way.
您如何才能在距离半径之内浏览数据库并根据您的位置查找公司?
How could you go through the database and find the Companies according to your Location, within a radius of distance?
推荐答案
我们还没有将GeoFire移植到Firestore 正在努力.
We don't yet support this though we're working on it. We also haven't ported GeoFire to Firestore given that effort is underway.
这篇关于在距离半径中过滤位置GeoPoint-Firestore的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文