Loading...
Searching...
No Matches
RouteManager Class Referenceabstract

Class is used for evaluating RoutePath from point to point. More...

Inherits Finalizable.

Public Member Functions

RoutePath makeRoute (LocationPoint from, LocationPoint to)
 Method is used to build a route between points about evaluated RoutePath from your position to target point.
 
List< RoutePathmakeRoutes (LocationPoint from, List< LocationPoint > to)
 Method is used to build a route between the starting point and several destination points.
 
void setTarget (LocationPoint target)
 Method is used to set target point in your location. Through RouteListener you will be notified about new paths to target point.
 
void addTarget (LocationPoint target)
 Method is used to add target point in your location. Through RouteListener you will be notified about new paths to target point.
 
void cancelTarget ()
 Method is used for removing current target points to where the routes were built.
 
void clearTargets ()
 Method is used for removing all target points to where the routes were built.
 
void setGraphTag (String tag)
 Method is used to select graph tag (Default: "default").
 
String getGraphTag ()
 Method is used to get current graph tag (Default: "default").
 
List< String > getGraphTags ()
 Method is used to get all graph tags,.
 
void addRouteListener (RouteListener listener)
 Method is used to add RouteListener class element which will notify about evaluated route path from your position to target point.
 
void removeRouteListener (RouteListener listener)
 Method is used for removing previously added RouteListener class element.
 

Detailed Description

Class is used for evaluating RoutePath from point to point.

Referenced from NavigineSdk.

Definition at line 21 of file route_manager.dart.

Member Function Documentation

◆ addRouteListener()

void RouteManager.addRouteListener ( RouteListener listener)

Method is used to add RouteListener class element which will notify about evaluated route path from your position to target point.

Note
Do not forget to remove listener if it is no longer needed!
Parameters
listenerСorresponding RouteListener class.

◆ addTarget()

void RouteManager.addTarget ( LocationPoint target)

Method is used to add target point in your location. Through RouteListener you will be notified about new paths to target point.

Parameters
targetfinish LocationPoint.

◆ cancelTarget()

void RouteManager.cancelTarget ( )

Method is used for removing current target points to where the routes were built.

◆ clearTargets()

void RouteManager.clearTargets ( )

Method is used for removing all target points to where the routes were built.

◆ getGraphTag()

String RouteManager.getGraphTag ( )

Method is used to get current graph tag (Default: "default").

◆ getGraphTags()

List< String > RouteManager.getGraphTags ( )

Method is used to get all graph tags,.

◆ makeRoute()

RoutePath RouteManager.makeRoute ( LocationPoint from,
LocationPoint to )

Method is used to build a route between points about evaluated RoutePath from your position to target point.

Parameters
fromstarting LocationPoint.
todestination LocationPoint.
Returns
RoutePath from starting to destination point.

◆ makeRoutes()

List< RoutePath > RouteManager.makeRoutes ( LocationPoint from,
List< LocationPoint > to )

Method is used to build a route between the starting point and several destination points.

Parameters
fromstarting LocationPoint.
todestination list of LocationPoints.
Returns
vector of RoutePaths from starting to destination point.

◆ removeRouteListener()

void RouteManager.removeRouteListener ( RouteListener listener)

Method is used for removing previously added RouteListener class element.

Parameters
listenerСorresponding RouteListener class to remove.

◆ setGraphTag()

void RouteManager.setGraphTag ( String tag)

Method is used to select graph tag (Default: "default").

◆ setTarget()

void RouteManager.setTarget ( LocationPoint target)

Method is used to set target point in your location. Through RouteListener you will be notified about new paths to target point.

Parameters
targetfinish LocationPoint.

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