I understand that by doing --- query.near('_geoloc', coord, 10); gives me all restaurants ordered by distance within 10 miles. But what is that distance value? is there any way to get it?
about 4 years ago
This is not returned as part of the query. However, given that you have `coord`, and the returned restaurants will have a `_geoloc` field, you can use the [Haversine formula](http://www.movable-type.co.uk/scripts/latlong.html) to calculate the distance yourself.