MichaelSolati / geofirestore-js

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

Distance helper function #94

Closed uturnr closed 5 years ago

uturnr commented 5 years ago

Great library! I used to use the distance helper function in 2.x, and I'm wondering if there's any way to access it in 3.x.

For me it was useful to display a user's distance from a location immediately after they added it.

MichaelSolati commented 5 years ago

I don't think this will fit in with the new format of geofirestore. However I do have a super lightwight library (geohelper) which would probably be perfect for you => https://github.com/MichaelSolati/geokit#geokitdistancestart-latlngliteral-end-latlngliteral-unit-string-number