Loading...
Searching...
No Matches
RouteManagerExample Class Reference
+ Inheritance diagram for RouteManagerExample:

Public Member Functions

void demonstrateRouteManagerMethods ()
 
void demonstrateRouteEventTypes ()
 
void demonstrateTurnTypes ()
 
void demonstrateAdvancedRoutingFeatures ()
 
void cleanup ()
 
void initializeSdk ()
 
void setupRouteListener ()
 
void demonstrateRouteManagerMethods ()
 
void demonstrateRoutePathUsage: (NSArray< NCRoutePath * > *paths)
 
void demonstrateRouteNodeUsage: (NCRouteNode *node)
 
void demonstrateRouteEventUsage: (NCRouteEvent *event)
 
void demonstrateRouteEventTypes ()
 
void demonstrateTurnTypes ()
 
void demonstrateTurnEventUsage: (NCTurnEvent *event)
 
void demonstrateTransitionEntryEventUsage: (NCTransitionEntryEvent *event)
 
void demonstrateTransitionExitEventUsage: (NCTransitionExitEvent *event)
 
void demonstrateTargetReachedEventUsage: (NCTargetReachedEvent *event)
 
void demonstrateLocationPointUsage: (NCLocationPoint *locationPoint)
 
void demonstratePointUsage: (NCPoint *point)
 
void demonstrateAdvancedRoutingFeatures ()
 
void demonstrateRoutePlanningSimulation ()
 
void cleanup ()
 
void runExample ()
 
(void) - onPathsUpdated:
 Called when new route has been calculated.
 

Public Attributes

NavigineSdk _sdk
 
LocationManager _locationManager
 
NavigationManager _navigationManager
 
RouteManager _routeManager
 
RouteListener _routeListener
 

Properties

NCNavigineSdksdk
 
NCLocationManagerlocationManager
 
NCNavigationManagernavigationManager
 
NCRouteManagerrouteManager
 

Detailed Description

RouteManager usage example for Dart/Flutter Demonstrates working with route planning, path calculation, and navigation

RouteManager usage example for Objective-C Demonstrates working with route planning, path calculation, and navigation

Definition at line 9 of file route_manager_example.dart.

Member Function Documentation

◆ cleanup() [1/2]

void RouteManagerExample.cleanup ( )
inline

Clean up resources

Definition at line 508 of file RouteManagerExample.m.

◆ cleanup() [2/2]

void RouteManagerExample.cleanup ( )
virtual

◆ demonstrateAdvancedRoutingFeatures() [1/2]

void RouteManagerExample.demonstrateAdvancedRoutingFeatures ( )
inline

Demonstrate advanced routing features

Definition at line 423 of file RouteManagerExample.m.

◆ demonstrateAdvancedRoutingFeatures() [2/2]

void RouteManagerExample.demonstrateAdvancedRoutingFeatures ( )
virtual

◆ demonstrateLocationPointUsage:()

void RouteManagerExample::demonstrateLocationPointUsage: ( NCLocationPoint * locationPoint)
virtual

Demonstrate LocationPoint class methods

Definition at line 368 of file RouteManagerExample.m.

◆ demonstratePointUsage:()

void RouteManagerExample::demonstratePointUsage: ( NCPoint * point)
virtual

Demonstrate Point class methods

Definition at line 400 of file RouteManagerExample.m.

◆ demonstrateRouteEventTypes() [1/2]

void RouteManagerExample.demonstrateRouteEventTypes ( )
inline

Demonstrate RouteEventType enum values

Definition at line 284 of file RouteManagerExample.m.

◆ demonstrateRouteEventTypes() [2/2]

void RouteManagerExample.demonstrateRouteEventTypes ( )
virtual

◆ demonstrateRouteEventUsage:()

void RouteManagerExample::demonstrateRouteEventUsage: ( NCRouteEvent * event)
virtual

Demonstrate RouteEvent class methods

Definition at line 245 of file RouteManagerExample.m.

◆ demonstrateRouteManagerMethods() [1/2]

void RouteManagerExample.demonstrateRouteManagerMethods ( )
inline

Demonstrate RouteManager methods

Definition at line 98 of file RouteManagerExample.m.

◆ demonstrateRouteManagerMethods() [2/2]

void RouteManagerExample.demonstrateRouteManagerMethods ( )
virtual

◆ demonstrateRouteNodeUsage:()

void RouteManagerExample::demonstrateRouteNodeUsage: ( NCRouteNode * node)
virtual

Definition at line 217 of file RouteManagerExample.m.

◆ demonstrateRoutePathUsage:()

void RouteManagerExample::demonstrateRoutePathUsage: ( NSArray<NCRoutePath *> * paths)
virtual

Demonstrate RoutePath class methods

Definition at line 173 of file RouteManagerExample.m.

◆ demonstrateRoutePlanningSimulation()

void RouteManagerExample.demonstrateRoutePlanningSimulation ( )
virtual

◆ demonstrateTargetReachedEventUsage:()

void RouteManagerExample::demonstrateTargetReachedEventUsage: ( NCTargetReachedEvent * event)
virtual

Definition at line 353 of file RouteManagerExample.m.

◆ demonstrateTransitionEntryEventUsage:()

void RouteManagerExample::demonstrateTransitionEntryEventUsage: ( NCTransitionEntryEvent * event)
virtual

Definition at line 329 of file RouteManagerExample.m.

◆ demonstrateTransitionExitEventUsage:()

void RouteManagerExample::demonstrateTransitionExitEventUsage: ( NCTransitionExitEvent * event)
virtual

Definition at line 341 of file RouteManagerExample.m.

◆ demonstrateTurnEventUsage:()

void RouteManagerExample::demonstrateTurnEventUsage: ( NCTurnEvent * event)
virtual

Definition at line 317 of file RouteManagerExample.m.

◆ demonstrateTurnTypes() [1/2]

void RouteManagerExample.demonstrateTurnTypes ( )
inline

Definition at line 299 of file RouteManagerExample.m.

◆ demonstrateTurnTypes() [2/2]

void RouteManagerExample.demonstrateTurnTypes ( )
virtual

◆ initializeSdk()

void RouteManagerExample::initializeSdk ( )
virtual

Definition at line 47 of file RouteManagerExample.m.

◆ onPathsUpdated:

- (void) onPathsUpdated: (nonnull NSArray< NCRoutePath * > *) paths

Called when new route has been calculated.

Parameters
pathscalculated list of RoutePaths to added targets.

Swift code snippet:

func onPathsUpdated(_ paths: [NCRoutePath]) {
print("Routes updated successfully")
demonstrateRoutePathUsage(paths)
}

Objective C code snippet:

- (void)onPathsUpdated:(NSArray<NCRoutePath *> *)paths {
NSLog(@"Routes updated successfully");
[self demonstrateRoutePathUsage:paths];
}

◆ runExample()

void RouteManagerExample.runExample ( )
virtual

◆ setupRouteListener()

void RouteManagerExample::setupRouteListener ( )
virtual

Setup route listener

Definition at line 90 of file RouteManagerExample.m.

Member Data Documentation

◆ _locationManager

LocationManager RouteManagerExample._locationManager

Definition at line 11 of file route_manager_example.dart.

◆ _navigationManager

NavigationManager RouteManagerExample._navigationManager

Definition at line 12 of file route_manager_example.dart.

◆ _routeListener

RouteListener RouteManagerExample._routeListener

Definition at line 14 of file route_manager_example.dart.

◆ _routeManager

RouteManager RouteManagerExample._routeManager

Definition at line 13 of file route_manager_example.dart.

◆ _sdk

NavigineSdk RouteManagerExample._sdk

Definition at line 10 of file route_manager_example.dart.

Property Documentation

◆ locationManager

NCLocationManager* RouteManagerExample.locationManager
readwritenonatomicstrong

Definition at line 11 of file RouteManagerExample.m.

◆ navigationManager

NCNavigationManager* RouteManagerExample.navigationManager
readwritenonatomicstrong

Definition at line 12 of file RouteManagerExample.m.

◆ routeManager

NCRouteManager* RouteManagerExample.routeManager
readwritenonatomicstrong

Definition at line 13 of file RouteManagerExample.m.

◆ sdk

NCNavigineSdk* RouteManagerExample.sdk
readwritenonatomicstrong

Definition at line 10 of file RouteManagerExample.m.


The documentation for this class was generated from the following files: