Filter location GeoPoint in distance radius - Firestore

老子叫甜甜 提交于 2021-02-16 14:10:13

问题


How to search the Firestore database for the location Latitude and Longitude within a defined distance radius.

Sample Database:

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

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?


回答1:


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.



来源:https://stackoverflow.com/questions/46675550/filter-location-geopoint-in-distance-radius-firestore

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!