getWaypoints method
- GetWaypointsOptions options = GetWaypointsOptions.remainingInitial,
inherited
Get list of route waypoints.
The waypoints are ordered like: departure, first waypoint, ..., destination.
If the route is target for a navigation, the list will contain the remaining to travel waypoints.
Parameters
- IN options Waypoints options
Returns
- List of Landmark
Throws
- An exception if it fails.
Implementation
List<Landmark> getWaypoints({
final GetWaypointsOptions options = GetWaypointsOptions.remainingInitial,
}) {
final OperationResult resultString = objectMethod(
_pointerId,
'RouteBase',
'getWaypoints',
args: options.id,
);
return LandmarkList.init(resultString['result'], _mapId).toList();
}