navigationRoute property

Route get navigationRoute

Navigation session route.

Returns the Route object for the active navigation session to which this instruction belongs. Use this to access route-level details such as total distance, waypoints, or alternative routes.

Returns

  • (Route) The route object for the current navigation session.

Implementation

Route get navigationRoute {
  final OperationResult resultString = objectMethod(
    pointerId,
    'NavigationInstruction',
    'getNavigationRoute',
  );

  return Route.init(resultString['result']);
}