whereWithinMiles method

void whereWithinMiles (String key, ParseGeoPoint point, double maxDistance)

Add a proximity based constraint for finding objects with key point values near the point given and within the maximum distance given.

Radius of earth used is {@code 3958.8} miles.

Implementation

void whereWithinMiles(String key, ParseGeoPoint point, double maxDistance) {
  whereWithinRadians(
      key, point, maxDistance / ParseGeoPoint.EARTH_MEAN_RADIUS_MILE);
}