distance property
Distance in meters from the reference coordinates to the overlay item.
The distance is calculated as a straight line distance between two coordinates except when the overlay is related to a route (e.g. an alarm along route) in which case the distance is calculated along the route
Returns
- Distance in meters as an int.
Implementation
int get distance {
final OperationResult resultString = objectMethod(
pointerId,
'OverlayItemPosition',
'getDistance',
);
return resultString['result'];
}