instructions property
List<RouteInstruction>
get
instructions
Turn-by-turn instructions for this segment.
Used for display on UI. Not intended for real-time navigation, for which use NavigationInstruction.
Returns
List<RouteInstruction>: instructions ordered along the segment for guidance and UI display.
See also:
- NavigationInstruction - for real-time navigation instructions.
Implementation
List<RouteInstruction> get instructions {
final OperationResult resultString = objectMethod(
pointerId,
'RouteSegmentBase',
'getInstructions',
);
return RouteInstructionList.init(resultString['result']).toList();
}