geoNear
Determines if point1 and point2 are within a specified distance from each other, default units are kilometers. Returns a Boolean.
Syntax
geoNear(point1, point2, distance[, units])
Parameters
Example 1
Return all locations within 50 miles of a given point.
Example 2
Return all locations within 2 degrees of the earth of a given point. (Each degree lat/long is about 69 miles [111 kilometers]). Return all data and the distance in miles, sorted by ascending distance.
Last updated