thresholdDistance property

int get thresholdDistance

Threshold distance (in meters) applied to search operations.

Used to limit results by distance when searching around a point or along a route. Default is the maximum int value.

Returns

  • The threshold distance in meters.

Implementation

int get thresholdDistance {
  final OperationResult resultString = objectMethod(
    pointerId,
    'SearchPreferences',
    'getthresholddistance',
  );

  return resultString['result'];
}
set thresholdDistance (int value)

Set the threshold distance used by search operations.

This controls the maximum distance for reverse geocoding and route-based searches.

Parameters

  • value: Threshold distance in meters.

Implementation

set thresholdDistance(final int value) {
  objectMethod(
    pointerId,
    'SearchPreferences',
    'setthresholddistance',
    args: value,
  );
}