RoutingService

class RoutingService(var preferences: RoutePreferences = RoutePreferences(), var onStarted: OnStarted? = null, var onCompleted: OnRoutingCompleted? = null, var onStatusChanged: OnStatusChanged? = null) : GemNativeObj

RoutingService object

Constructors

Link copied to clipboard
constructor(preferences: RoutePreferences = RoutePreferences(), onStarted: OnStarted? = null, onCompleted: OnRoutingCompleted? = null, onStatusChanged: OnStatusChanged? = null)

Properties

Link copied to clipboard

Address of native referenced object. nullptr if not referencing any native allocated object. Note native allocation will happen only once.

Link copied to clipboard

EV car models.

Link copied to clipboard

On completed trigger.

Link copied to clipboard

On started trigger.

Link copied to clipboard

On status changed trigger.

Link copied to clipboard

Service preferences.

Link copied to clipboard

Data transfer statistics for this service.

Functions

Link copied to clipboard
fun calculateRoute(destination: Landmark, transportMode: ERouteTransportMode? = null, onStarted: OnStarted? = null, onCompleted: OnRoutingCompleted? = null): Int

Calculates a route form current position to specified destination.

fun calculateRoute(waypoints: LandmarkList, transportMode: ERouteTransportMode? = null, fromMyPosition: Boolean = false, onStarted: OnStarted? = null, onCompleted: OnRoutingCompleted? = null, onStatusChanged: OnStatusChanged? = null): Int
fun calculateRoute(gpxTrack: Path, transportMode: ERouteTransportMode? = null, fromMyPosition: Boolean = false, startLandmarks: LandmarkList? = null, endLandmarks: LandmarkList? = null, onStarted: OnStarted? = null, onCompleted: OnRoutingCompleted? = null): Int

Calculates a route between the specified waypoints.

Link copied to clipboard

Cancels the route calculation associated with the specified listener.

Link copied to clipboard
fun finalize()

Overrides finalize that garbage collector will call when needed.

Link copied to clipboard

True if keeps a reference to a C++ SDK object False if keeps a C++ SDK object

Link copied to clipboard
operator fun not(): Boolean

Checks if this object is valid.

Link copied to clipboard
fun release()

Releases the native referenced value of this object if:

Link copied to clipboard
external fun resetRouteRoadBlocks()

Resets the user road blocks.

Link copied to clipboard
external fun setRouteRoadBlock(instruction: RouteInstruction)

Sets a user road block from the provided route instruction.