EVRouteResult

class EVRouteResult(val route: Route?, val error: Error?, computeTime: TimeMeasurement, val optimChargeResult: OptimChargeResult) : RouteResult

Represents a result of the ComputeRouteListener when computing EV routes

Constructors

Link copied to clipboard
constructor(route: Route?, error: Error?, computeTime: TimeMeasurement, optimChargeResult: OptimChargeResult)

Properties

Link copied to clipboard
val error: Error?

an Error explaining what went wrong for this route's computation (can occur even if route is not null)

Link copied to clipboard

the EV optimization result (values available in OptimChargeResult)

Link copied to clipboard
val route: Route?

a Route that can be null if an error occurred

Functions

Link copied to clipboard
fun toFullJson(minSocAtArrival: Double): String

Builds String in Json format containing data of the Route plus EV data

Link copied to clipboard
open override fun toJson(): String

Builds String in Json format containing data of the Route.