filterInsideRadius abstract method
List<LatLng>
filterInsideRadius(
- List<
LatLng> locations, - double radius, {
- DistanceAlgorithmType algorithm = DistanceAlgorithmType.Haversine,
- LengthUnit unit = LengthUnit.M,
Filter locations
to only contains LatLng within a specified radius
.
locations
list of LatLng locations to be filtered
radius
radius to be used to filter locations
algorithm
calculation algorithm to be used.
Available values DistanceAlgorithmType.Haversine and
DistanceAlgorithmType.Vincenty
Default [DistanceAlgorithmType.Haversine]
unit
unit of radius
. Default in meters LengthUnit.M
Implementation
List<LatLng> filterInsideRadius(
List<LatLng> locations,
double radius, {
DistanceAlgorithmType algorithm = DistanceAlgorithmType.Haversine,
LengthUnit unit = LengthUnit.M,
});