getCoordinateOnRoute method

Coordinates getCoordinateOnRoute(
  1. int distance
)
inherited

Get a coordinate on route at the given distance from the departure / starting point.

Parameters

  • IN distance The distance from the route start, in meters.

Returns

  • Coordinates at the specified distance along the route.

Throws

  • An exception if it fails.

Implementation

Coordinates getCoordinateOnRoute(final int distance) {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'RouteBase',
    'getCoordinateOnRoute',
    args: distance,
  );

  return Coordinates.fromJson(resultString['result']);
}