Loading...
Searching...
No Matches
com.navigine.idl.java.internal.AsyncRouteManagerBinding Class Reference
+ Inheritance diagram for com.navigine.idl.java.internal.AsyncRouteManagerBinding:

Public Member Functions

RouteSession createRouteSession (LocationPoint wayPoint, RouteOptions routeOptions)
 Method is used to create routing session with 'default' graph tag.
 
RouteSession createRouteSessionWithTag (LocationPoint wayPoint, RouteOptions routeOptions, String tag)
 Creates a routing session using a specific graph tag.
 
void cancelRouteSession (RouteSession session)
 Method is used to cancel routing session.
 

Protected Member Functions

 AsyncRouteManagerBinding (NativeObject nativeObject)
 

Detailed Description

Definition at line 13 of file AsyncRouteManagerBinding.java.

Constructor & Destructor Documentation

◆ AsyncRouteManagerBinding()

com.navigine.idl.java.internal.AsyncRouteManagerBinding.AsyncRouteManagerBinding ( NativeObject nativeObject)
inlineprotected

Invoked only from native code.

Definition at line 20 of file AsyncRouteManagerBinding.java.

Member Function Documentation

◆ cancelRouteSession()

void com.navigine.idl.java.internal.AsyncRouteManagerBinding.cancelRouteSession ( RouteSession session)
inline

Method is used to cancel routing session.

Parameters
sessionRouteSession object to cancel.

Java code snippet:

// Cancel route session
asyncRouteManager.cancelRouteSession(sessions.get(i));
System.out.println("Cancelled session " + (i + 1));

Kotlin code snippet:

// Cancel route session
manager.cancelRouteSession(session)
println("Cancelled session ${index + 1}")

Reimplemented from com.navigine.idl.java.AsyncRouteManager.

Definition at line 42 of file AsyncRouteManagerBinding.java.

◆ createRouteSession()

RouteSession com.navigine.idl.java.internal.AsyncRouteManagerBinding.createRouteSession ( LocationPoint wayPoint,
RouteOptions routeOptions )
inline

Method is used to create routing session with 'default' graph tag.

Parameters
wayPointdestination point.
routeOptionsparams of RouteSession.
Returns
RouteSession instance.

Java code snippet:

// Create route session with default graph tag
RouteSession session = asyncRouteManager.createRouteSession(destinationLocationPoint, routeOptions);
System.out.println("Created route session with default graph tag");

Kotlin code snippet:

// Create route session with default graph tag
val session = manager.createRouteSession(destinationLocationPoint, routeOptions)
println("Created route session with default graph tag")

Reimplemented from com.navigine.idl.java.AsyncRouteManager.

Definition at line 28 of file AsyncRouteManagerBinding.java.

◆ createRouteSessionWithTag()

RouteSession com.navigine.idl.java.internal.AsyncRouteManagerBinding.createRouteSessionWithTag ( LocationPoint wayPoint,
RouteOptions routeOptions,
String tag )
inline

Creates a routing session using a specific graph tag.

Initializes a RouteSession for building a route to the given waypoint using the specified routing options and graph tag. If the specified tag is not present in the current location (i.e., the corresponding sublocation graph is not yet available), the returned RouteSession will produce an empty route and will not trigger any listeners until the location data for that tag becomes available (e.g., after a location update).

Parameters
wayPointDestination point for the route.
routeOptionsRouting parameters RouteSession used to build the route.
tagGraph tag identifying which sublocation graph to use. Sublocation
Returns
A RouteSession instance, which may initially be empty if the tag is not available. RouteSession

Java code snippet:

// Create route session with specific graph tag
RouteSession sessionWithTag = asyncRouteManager.createRouteSessionWithTag(destinationLocationPoint, routeOptions, "main");
System.out.println("Created route session with 'main' graph tag");

Kotlin code snippet:

// Create route session with specific graph tag
val sessionWithTag = manager.createRouteSessionWithTag(destinationLocationPoint, routeOptions, "main")
println("Created route session with 'main' graph tag")

Reimplemented from com.navigine.idl.java.AsyncRouteManager.

Definition at line 35 of file AsyncRouteManagerBinding.java.


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