thresholdHeading property
int
get
thresholdHeading
Threshold heading (in degrees) applied to searches along a route.
The maximum difference between the heading of a result (if it has one) and the heading of the closest route segment. Used only by SearchService.searchAlongRoute. Only results that carry a heading are filtered, i.e. overlay items that define a direction, such as social reports; map POIs, addresses, streets and landmark store results are never filtered.
A result is kept when the difference is strictly less than the threshold. Differences range from 0 to 180 degrees, so any value above 180 keeps every result. Default is the maximum int value (no filtering).
Returns
- The threshold heading in degrees.
Implementation
int get thresholdHeading {
final OperationResult resultString = objectMethod(
pointerId,
'SearchPreferences',
'getthresholdheading',
);
return resultString['result'];
}
set
thresholdHeading
(int value)
Set the threshold heading used by searches along a route.
Negative values are ignored and the previous value is kept.
Parameters
value: Threshold heading in degrees.
Implementation
set thresholdHeading(int value) {
objectMethod(
pointerId,
'SearchPreferences',
'setthresholdheading',
args: value,
);
}