Router
class Router : NativeMethodsReceiver, SygicContext.OnContextDestroyListener
Content copied to clipboard
Types
Functions
call Method
Link copied to clipboard
open fun <T : NativeMethodsReceiver.NativeListener> callMethod(clazz: Class<T>, callback: NativeMethodsReceiver.NativeCallback<T>)
Content copied to clipboard
cancel Computes
Link copied to clipboard
fun cancelComputes()
Content copied to clipboard
Cancels all computes.
compute EVRange
Link copied to clipboard
fun computeEVRange(position: GeoCoordinates, capacities: List<Double>, options: RoutingOptions, profile: EVProfile, listener: EVRangeListener, executor: Executor? = null): Router.Task
Content copied to clipboard
Computes range of EV from given position using different battery capacities battery based on starting ev profile
compute Next Durations
Link copied to clipboard
fun computeNextDurations(route: Route, times: List<Long>, listener: RouteDurationListener, executor: Executor? = null): Router.Task
Content copied to clipboard
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.
compute Route From JSONString
Link copied to clipboard
fun computeRouteFromJSONString(json: String, listener: RouteComputeListener, executor: Executor? = null): Router.Task
Content copied to clipboard
Computes route from JSON string that was serialized via Route.serializeToBriefJSON
compute Route With Alternatives
Link copied to clipboard
fun computeRouteWithAlternatives(primaryRouteRequest: PrimaryRouteRequest, alternatives: List<AlternativeRouteRequest>? = null, listener: RouteComputeFinishedListener, executor: Executor? = null): Router.Task
Content copied to clipboard
This method will compute primary route with alternatives, if possible.
get Charging Waypoints
Link copied to clipboard
Retrieves charging waypoints from computed route
get Listeners
Link copied to clipboard
open fun <T : NativeMethodsReceiver.NativeListener> getListeners(clazz: Class<T>): MutableMap<T, Executor>
Content copied to clipboard
get Remaining Battery Capacity At
Link copied to clipboard
fun getRemainingBatteryCapacityAt(waypoint: Waypoint, profile: EVProfile, route: Route): Float
Content copied to clipboard
Calculates remaining battery capacity (kwh) at given waypoint at route based on starting ev profile
on Context Destroy
Link copied to clipboard
open override fun onContextDestroy()
Content copied to clipboard
register
Link copied to clipboard
unregister
Link copied to clipboard
open fun <T : NativeMethodsReceiver.NativeListener> unregister(clazz: Class<T>, listener: T): Int
Content copied to clipboard