calculateEVRange

open fun calculateEVRange(position: GeoCoordinates, capacities: List<Double>, options: RoutingOptions, profile: EVProfile, listener: Router.EVRangeListener)

This method will compute routes in all directions from the position, and returns a polygon of where you can go with your battery capacity.You can get multiple polygons for different capacities in one call.

Parameters

position

Geographical position from which the calculation starts GeoCoordinates

capacities

List of battery capacities in kWh as start values for the computation

options

Instance of RoutingOptions

profile

Instance of EVProfile

open fun calculateEVRange(position: GeoCoordinates, capacities: List<Double>, options: RoutingOptions, profile: EVProfile, listener: Router.EVRangeListener, @Nullable() executor: Executor)

This method will compute routes in all direction f rom position, and returs polygon area where you can go with your battery capacity.You can get multiple polygons for different capacities in one call.

Parameters

position

Geographical position from which the calculation starts GeoCoordinates

capacities

List of battery capacities in kWh as start values for the computation

options

Instance of RoutingOptions

profile

Instance of EVProfile

executor

Executor which will execute listener's callbacks