问题
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