MichaelSolati / geofirestore-js

Location-based querying and filtering using Firebase Firestore.
https://geofirestore.com
MIT License
505 stars 58 forks source link

[Feature] Distance in the result #90

Closed sedestrian closed 5 years ago

sedestrian commented 5 years ago

It would be really cool if the library gave you the option to get the distance of each result from the center

MichaelSolati commented 5 years ago

It does! When you make a query you get QueryDocumentSnapshots back which have a distance field.

https://geofirestore.com/interfaces/_geofirestoretypes_.geofirestoretypes.querydocumentsnapshot.html

sedestrian commented 5 years ago

Oh wow amazing! I didn't realize