getWaypointsVia method
Produce a new waypoint list inserting landmark into the remaining route waypoints.
Parameters
landmark: The via waypoint to insert into the remaining route waypoints.
Returns
List<Landmark>: a new list of waypoints including the inserted via waypoint placed in the correct position. When the route is being navigated the returned list contains the remaining waypoints.
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']).toList();
}