Router
Types
Functions
Link copied to clipboard
Cancels all computes.
Link copied to clipboard
fun computeEVRange(position: GeoCoordinates, capacities: List<Double>, options: RoutingOptions, listener: EVRangeListener, executor: Executor? = null): Router.Task
Computes range of EV from given position using different battery capacities battery based on starting vehicle profile from routing options
Link copied to clipboard
fun computeNextDurations(route: Route, times: List<Long>, listener: RouteDurationListener, executor: Executor? = null): Router.Task
Compute the durations of a route in any given time(s). Note that the speed profiles change each 15 minutes so it's ineffective to request smaller intervals.
Link copied to clipboard
fun computeRouteFromJSONString(json: String, listener: RouteComputeListener, executor: Executor? = null): Router.Task
Computes route from JSON string that was serialized via Route.serializeToBriefJSON
Link copied to clipboard
fun computeRouteWithAlternatives(primaryRouteRequest: PrimaryRouteRequest, alternatives: List<AlternativeRouteRequest>? = null, listener: RouteComputeFinishedListener, executor: Executor? = null): Router.Task
This method will compute primary route with alternatives, if possible.
Link copied to clipboard
Retrieves charging waypoints from computed route
Link copied to clipboard
fun getRemainingBatteryCapacityAt(waypoint: Waypoint, vehicleProfile: VehicleProfile, route: Route): Float
Calculates remaining battery capacity (kwh) at given waypoint at route based on starting vehicle profile
Link copied to clipboard