Routing Service
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
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
True if keeps a reference to a C++ SDK object False if keeps a C++ SDK object
Link copied to clipboard
Resets the user road blocks.
Link copied to clipboard
Sets a user road block from the provided route instruction.