distance property
int
get
distance
Retrieves the distance from the reference coordinates to this landmark.
The distance is calculated as a straight line distance between two coordinates except when the landmark 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 integer.
Implementation
int get distance {
final OperationResult resultString = objectMethod(
pointerId,
'LandmarkPosition',
'getDistance',
);
return resultString['result'];
}