CalculateBestCentereOnLocationPackageExtension extension
Methods
-
calculateBestCenter(
{required Set< TLocationComponents> locations, required double threshold, required DistanceUnit distanceUnit}) → TLocationComponents -
Available on LocationUtils, provided by the CalculateBestCentereOnLocationPackageExtension extension
Calculates the best center for a set oflocations
. This is the geometric center unless the distance to the closest marker is greater than thethreshold
, then the closest marker is used. ThedistanceUnit
is the unit of the threshold.