RouteOptions

open class RouteOptions(val vehicle: Vehicle? = null, val routeOptim: RouteOptim = RouteOptim.FASTEST, val routeCriteria: List<RouteCriteria> = listOf(RouteCriteria.DEFAULT), var departure: Date? = Date(), val maxAlternativeRoutes: Int = 0, val useStopRoadSide: Boolean = false, val useStartAngle: Boolean = false, val avoidUTurn: Boolean = false, var withLiveTraffic: Boolean = false, val withStatisticalTraffic: Boolean = false, val startUTurnThreshold: Int = 3000)

Class containing information about what parameters should be taken into account while computing the route

Inheritors

Constructors

Link copied to clipboard
constructor(vehicle: Vehicle? = null, routeOptim: RouteOptim = RouteOptim.FASTEST, routeCriteria: List<RouteCriteria> = listOf(RouteCriteria.DEFAULT), departure: Date? = Date(), maxAlternativeRoutes: Int = 0, useStopRoadSide: Boolean = false, useStartAngle: Boolean = false, avoidUTurn: Boolean = false, withLiveTraffic: Boolean = false, withStatisticalTraffic: Boolean = false, startUTurnThreshold: Int = 3000)

Properties

Link copied to clipboard
val avoidUTurn: Boolean = false

defines if u-turn restrictions should be avoided

Link copied to clipboard

date of the departure (default value is the current date)

Link copied to clipboard

maximum number of alternative routes to calculate in range 0,2

Link copied to clipboard

a list of RouteCriteria that should be used while computing the route

Link copied to clipboard

defines what should be prioritized when computing the route

Link copied to clipboard

Determines, at start point or any via point for which an avoid UTurn restriction is set, the threshold (in 1/10th seconds / meters in FASTEST / SHORTEST mode) of the difference of ETA between avoiding a UTurn or not, above which UTurn is allowed. Default value is 3000 (300 seconds or 300 meters depending on route optimization mode).

Link copied to clipboard
val useStartAngle: Boolean = false

defines if starting angle should be used

Link copied to clipboard

defines if stop waypoint road side should be used

Link copied to clipboard
val vehicle: Vehicle? = null

vehicle model and status that will travel the route or null if none specified

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun toJson(): String