getWaypointsVia method

List<Landmark> getWaypointsVia(
  1. Landmark landmark
)
inherited

Get a new waypoints configuration using the given intermediate via waypoint.

Parameters

  • IN landmark The via waypoint to be inserted in the remaining route waypoints.

Returns

  • A new route waypoints list including the given via placed in a proper position with respect to the existing route waypoints.

If the route is target for a navigation, the list will contain the remaining to travel waypoints.

Throws

  • An exception if it fails.

Implementation

List<Landmark> getWaypointsVia(final Landmark landmark) {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'RouteBase',
    'getWaypointsVia',
    args: <String, dynamic>{'landmark': landmark.pointerId},
  );

  return LandmarkList.init(resultString['result'], _mapId).toList();
}