calculateRoute

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

Calculates a route between the specified waypoints.

Parameters

waypoints

The list of waypoints for the route.

transportMode

Route Transport Mode. If not null then will overwrite the existing one.

fromMyPosition

If true then current position will be added at start of waypoints list.

onStarted

On started trigger. If not null then will overwrite the existing one.

onCompleted

On completed trigger. If not null then will overwrite the existing one.


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

Calculates a route form current position to specified destination.

Parameters

destination

The destination for the route.

transportMode

Route Transport Mode. If not null then will overwrite the existing one.

onStarted

On started trigger. If not null then will overwrite the existing one.

onCompleted

On completed trigger. If not null then will overwrite the existing one.


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.

Parameters

gpxTrack

Desired gpx track.

startLandmarks

Landmarks that will be used for routing before gpx track starts.

endLandmarks

Landmarks that will be used for routing after gpx track ends.

transportMode

Route Transport Mode. If not null then will overwrite the existing one.

fromMyPosition

If true then current position will be added at start of waypoints list.

onStarted

On started trigger. If not null then will overwrite the existing one.

onCompleted

On completed trigger. If not null then will overwrite the existing one.