getDistance method

  1. @override
int getDistance(
  1. int index
)
override

Get the distance in meters from the item to the reference coordinate.

Parameters

  • IN index The index of the overlay item.

Returns

  • The distance to the item specified by index, or 0 if the index is not in range

Throws

  • An exception if it fails.

Implementation

@override
int getDistance(final int index) {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'LandmarkAlarmsList',
    'getDistance',
    args: index,
  );

  return resultString['result'];
}