EVRouteOptions

class EVRouteOptions(val vehicle: Vehicle, 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 rechargeParameters: RechargeParameters = RechargeParameters(), val fastComputation: Boolean = true) : RouteOptions

Class containing information about what parameters should be taken into account while computing optimized routes for electric vehicles

Constructors

Link copied to clipboard
constructor(vehicle: Vehicle, 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, rechargeParameters: RechargeParameters = RechargeParameters(), fastComputation: Boolean = true)

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

With hybrid maps this option allows to optimize the route computation time when a lot of data needs to be downloaded. The computed route may not be optimal in this case (e.g. 2 minutes longer than the best solution).

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 override fun toJson(): String