pointsInRange method

List<LatLng> pointsInRange(
  1. LatLng point,
  2. List<LatLng> pointsToCheck,
  3. num distance
)

Get a list of LatLng points within a specified distance from a given point.

Given a geographic point point, a list of pointsToCheck, and a distance in meters distance, this function returns a list of LatLng points from pointsToCheck that are within the specified distance from the given point.

Implementation

List<LatLng> pointsInRange(
    LatLng point, List<LatLng> pointsToCheck, num distance) {
  return PointRange.pointInRange(point, pointsToCheck, distance);
}