class LongDistanceEVRoutingQueryBuilder : ILongDistanceEVRoutingQuery
The default builder for LongDistanceEVRoutingQuery objects.
LongDistanceEVRoutingQueryBuilder(origin: LatLng, destination: LatLng, speedConsumptionInKWhPerHundredKm: Map<Double, Double>, currentChargeInKWh: Double, maxChargeInkWh: Double, minChargeAtDestinationInkWh: Double, minChargeAtChargingStopsInkWh: Double, chargingModes: List<NativeChargingMode>)
The default builder for LongDistanceEVRoutingQuery objects. |
fun build(): LongDistanceEVRoutingQuery
Creates new instance of LongDistanceEVRoutingQuery. |
|
fun withAccelerationEfficiency(accelerationEfficiency: Double): LongDistanceEVRoutingQueryBuilder
Specifies the efficiency of converting chemical energy stored in fuel to kinetic energy when the vehicle accelerates. |
|
fun withAllowVignette(allowVignette: String): LongDistanceEVRoutingQueryBuilder
Specifies country in which all toll roads and vignettes will be allowed. |
|
fun withAllowVignettes(allowVignettes: MutableList<String>): LongDistanceEVRoutingQueryBuilder
Specifies countries in which all toll roads and vignettes will be allowed. |
|
fun withAuxiliaryPowerInKW(auxiliaryPowerInKW: Double): LongDistanceEVRoutingQueryBuilder
Specifies the amount of power consumed for sustaining auxiliary systems, in kWh. |
|
fun withAvoidArea(avoidArea: BoundingBox): LongDistanceEVRoutingQueryBuilder
Specifies area which will be avoided. |
|
fun withAvoidAreas(avoidAreas: MutableList<BoundingBox>): LongDistanceEVRoutingQueryBuilder
Specifies areas which will be avoided. |
|
fun withAvoidType(avoidType: NativeAvoidType): LongDistanceEVRoutingQueryBuilder
Specifies something that the route calculation should try to avoid when determining the route. |
|
fun withAvoidTypes(avoidTypes: MutableList<NativeAvoidType>): LongDistanceEVRoutingQueryBuilder
Specifies something that the route calculation should try to avoid when determining the route. |
|
fun withAvoidVignette(avoidVignette: String): LongDistanceEVRoutingQueryBuilder
Specifies country in which all toll roads and vignettes will be avoided. |
|
fun withAvoidVignettes(avoidVignettes: MutableList<String>): LongDistanceEVRoutingQueryBuilder
Specifies countries in which all toll roads and vignettes will be avoided. |
|
fun withDecelerationEfficiency(decelerationEfficiency: Double): LongDistanceEVRoutingQueryBuilder
Specifies the efficiency of converting kinetic energy to saved (not consumed) fuel when the vehicle decelerates. |
|
fun withDepartAt(departAt: String): LongDistanceEVRoutingQueryBuilder
The date and time of departure from the origin point. |
|
fun withDownhillEfficiency(downhillEfficiency: Double): LongDistanceEVRoutingQueryBuilder
Specifies the efficiency of converting potential energy to saved (not consumed) fuel when the vehicle loses elevation. |
|
fun withIsVehicleCommercial(isVehicleCommercial: Boolean): LongDistanceEVRoutingQueryBuilder
Specifies whether the vehicle is used for commercial purposes and thus may not be allowed to drive on some roads. |
|
fun withReport(reportType: NativeReportType): LongDistanceEVRoutingQueryBuilder
Specifies which data should be reported for diagnosis purposes. |
|
fun withRouteRepresentation(routeRepresentation: NativeRouteRepresentation): LongDistanceEVRoutingQueryBuilder
The representation of the set of routes provided as a Response. |
|
fun withRouteType(routeType: NativeRouteType): LongDistanceEVRoutingQueryBuilder
The type of route requested. |
|
fun withSectionType(sectionType: NativeSectionType): LongDistanceEVRoutingQueryBuilder
Specifies which of the section types is reported in the route Response. |
|
fun withTraffic(traffic: Boolean): LongDistanceEVRoutingQueryBuilder
Specifies whether the traffic information will be considered. |
|
fun withTravelMode(travelMode: NativeTravelMode): LongDistanceEVRoutingQueryBuilder
The mode of travel for the requested route. |
|
fun withUphillEfficiency(uphillEfficiency: Double): LongDistanceEVRoutingQueryBuilder
Specifies the efficiency of converting chemical energy stored in fuel to potential energy when the vehicle gains elevation. |
|
fun withVehicleAdrTunnelRestrictionCode(vehicleAdrTunnelRestrictionCode: NativeVehicleAdrTunnelRestrictionCode): LongDistanceEVRoutingQueryBuilder
If vehicleAdrTunnelRestrictionCode is specified, the vehicle is subject to ADR tunnel restrictions. |
|
fun withVehicleAxleWeightInKg(vehicleAxleWeightInKg: Int): LongDistanceEVRoutingQueryBuilder
Weight per axle of the vehicle in kilograms. |
|
fun withVehicleHeading(vehicleHeading: Int): LongDistanceEVRoutingQueryBuilder
The directional heading of the vehicle in degrees starting at true North and continuing in a clockwise direction. |
|
fun withVehicleHeightInMeters(vehicleHeightInMeters: Double): LongDistanceEVRoutingQueryBuilder
Height of the vehicle in meters. |
|
fun withVehicleLengthInMeters(vehicleLengthInMeters: Double): LongDistanceEVRoutingQueryBuilder
Length of the vehicle in meters. |
|
fun withVehicleLoadType(vehicleLoadType: NativeVehicleLoadType): LongDistanceEVRoutingQueryBuilder
Types of cargo that may be classified as hazardous materials and restricted from some roads. |
|
fun withVehicleMaxSpeedInKph(vehicleMaxSpeedInKph: Int): LongDistanceEVRoutingQueryBuilder
Maximum speed of the vehicle in km/hour. |
|
fun withVehicleWeightInKg(vehicleWeightInKg: Int): LongDistanceEVRoutingQueryBuilder
Weight of the vehicle in kilograms. |
|
fun withVehicleWidthInMeters(vehicleWidthInMeters: Double): LongDistanceEVRoutingQueryBuilder
Width of the vehicle in meters. |
fun create(origin: LatLng, destination: LatLng, speedConsumptionInKWhPerHundredKm: Map<Double, Double>, currentChargeInKWh: Double, maxChargeInkWh: Double, minChargeAtDestinationInkWh: Double, minChargeAtChargingStopsInkWh: Double, chargingModes: List<NativeChargingMode>): LongDistanceEVRoutingQueryBuilder
Builder used to create an instance of LongDistanceEVRoutingQuery, once constructed, the user cannot change the field values. |