public class MatrixRoutingQueryBuilder
extends java.lang.Object
MatrixRoutingQuery objects.| Constructor and Description |
|---|
MatrixRoutingQueryBuilder(java.util.List<LatLng> origins,
java.util.List<LatLng> destinations) |
| Modifier and Type | Method and Description |
|---|---|
MatrixRoutingQuery |
build()
Creates new instance of
MatrixRoutingQuery |
static MatrixRoutingQueryBuilder |
create(java.util.List<LatLng> origins,
java.util.List<LatLng> destinations)
Creates an instance of
MatrixRoutingQueryBuilder with given origins and destinations lists. |
MatrixRoutingQueryBuilder |
withAccelerationEfficiency(java.lang.Double accelerationEfficiency)
Specifies the efficiency of converting kinetic energy to saved (not consumed) fuel when the
vehicle decelerates (i.e.
|
MatrixRoutingQueryBuilder |
withAuxiliaryPowerInKW(java.lang.Double auxiliaryPowerInKW)
Specifies the amount of power consumed for sustaining auxiliary systems, in kilowatts (kW).
|
MatrixRoutingQueryBuilder |
withAuxiliaryPowerInLitersPerHour(java.lang.Double auxiliaryPowerInLitersPerHour)
Specifies the amount of fuel consumed for sustaining auxiliary systems of the vehicle, in
liters per hour.
|
MatrixRoutingQueryBuilder |
withAvoidType(Avoid avoidType)
Specifies what the route calculation should try to avoid when determining the route.Can be specified multiple times.
|
MatrixRoutingQueryBuilder |
withConsiderTraffic(java.lang.Boolean considerTraffic)
Specifies if all available traffic information should be considered during routing.
|
MatrixRoutingQueryBuilder |
withConstantSpeedConsumptionInKWhPerHundredKm(SpeedToConsumptionMap constantSpeedConsumptionInKWhPerHundredKm)
Specifies the speed-dependent component of consumption.
|
MatrixRoutingQueryBuilder |
withConstantSpeedConsumptionInLitersPerHundredKm(SpeedToConsumptionMap constantSpeedConsumptionInLitersPerHundredKm)
Specifies the speed-dependent component of consumption.
|
MatrixRoutingQueryBuilder |
withCurrentChargeInKWh(java.lang.Double currentChargeInKWh)
Specifies the current electric energy supply in kilowatt hours (kWh).
|
MatrixRoutingQueryBuilder |
withCurrentFuelInLiters(java.lang.Double currentFuelInLiters)
Specifies the current supply of fuel in liters.
|
MatrixRoutingQueryBuilder |
withDecelerationEfficiency(java.lang.Double decelerationEfficiency)
Specifies the efficiency of converting chemical energy stored in fuel to potential energy
when the vehicle gains elevation (i.e.
|
MatrixRoutingQueryBuilder |
withDepartAt(java.util.Date departAt)
Specifies the departure time.
|
MatrixRoutingQueryBuilder |
withDownhillEfficiency(java.lang.Double downhillEfficiency)
Specifies the efficiency of converting potential energy to saved (not consumed) fuel when the
vehicle loses elevation (i.e.
|
MatrixRoutingQueryBuilder |
withFuelEnergyDensityInMJoulesPerLiter(java.lang.Double fuelEnergyDensityInMJoulesPerLiter)
Specifies the amount of chemical energy stored in one liter of fuel in megajoules (MJ).
|
MatrixRoutingQueryBuilder |
withHilliness(Hilliness hilliness)
Specifies the hilliness type for route calculation.
|
MatrixRoutingQueryBuilder |
withMaxChargeInKWh(java.lang.Double maxChargeInKWh)
Specifies the capacity of the vehicle's battery in kilowatt hours (kWh).
|
MatrixRoutingQueryBuilder |
withRouteType(RouteType routeType)
Specifies the route type.
|
MatrixRoutingQueryBuilder |
withTravelMode(TravelMode travelMode)
Specifies the travel mode for route calculation.
|
MatrixRoutingQueryBuilder |
withUphillEfficiency(java.lang.Double uphillEfficiency)
Specifies the efficiency of converting chemical energy stored in fuel to potential energy
when the vehicle gains elevation (i.e.
|
MatrixRoutingQueryBuilder |
withVehicleAxleWeightInKg(java.lang.Integer vehicleAxleWeightInKg)
Specifies the vehicle axle weight for route calculation.
|
MatrixRoutingQueryBuilder |
withVehicleCommercial(java.lang.Boolean vehicleCommercial)
Specifies if the vehicle is used for commercial to calculate route.
|
MatrixRoutingQueryBuilder |
withVehicleEngineType(VehicleEngineType vehicleEngineType)
Specifies the vehicle engine type for route query.
|
MatrixRoutingQueryBuilder |
withVehicleHeightInMeters(java.lang.Double vehicleHeightInMeters)
Specifies the vehicle height for route calculation.
|
MatrixRoutingQueryBuilder |
withVehicleLengthInMeters(java.lang.Double vehicleLengthInMeters)
Specifies the vehicle length for route calculation.
|
MatrixRoutingQueryBuilder |
withVehicleLoadType(VehicleLoadType vehicleLoadType)
Specifies the vehicle load type for route calculation.
|
MatrixRoutingQueryBuilder |
withVehicleMaxSpeedInKph(java.lang.Integer vehicleMaxSpeedInKph)
Specifies the vehicle max speed for route calculation.
|
MatrixRoutingQueryBuilder |
withVehicleWeightInKg(java.lang.Integer vehicleWeightInKg)
Specifies the vehicle weight in kilograms for route calculation.
|
MatrixRoutingQueryBuilder |
withVehicleWidthInMeters(java.lang.Double vehicleWidthInMeters)
Specifies the vehicle width for route calculation.
|
MatrixRoutingQueryBuilder |
withWindingness(Windingness windingness)
Specifies the windingness type for route calculation.
|
public MatrixRoutingQueryBuilder withDepartAt(java.util.Date departAt)
departAt - public MatrixRoutingQueryBuilder withRouteType(RouteType routeType)
routeType - public MatrixRoutingQueryBuilder withConsiderTraffic(java.lang.Boolean considerTraffic)
considerTraffic - public MatrixRoutingQueryBuilder withAvoidType(Avoid avoidType)
avoidType - public MatrixRoutingQueryBuilder withTravelMode(TravelMode travelMode)
travelMode - public MatrixRoutingQueryBuilder withHilliness(Hilliness hilliness)
hilliness - public MatrixRoutingQueryBuilder withWindingness(Windingness windingness)
windingness - public MatrixRoutingQueryBuilder withVehicleMaxSpeedInKph(java.lang.Integer vehicleMaxSpeedInKph)
vehicleMaxSpeedInKph - public MatrixRoutingQueryBuilder withVehicleWeightInKg(java.lang.Integer vehicleWeightInKg)
vehicleWeightInKg - public MatrixRoutingQueryBuilder withVehicleAxleWeightInKg(java.lang.Integer vehicleAxleWeightInKg)
vehicleAxleWeightInKg - public MatrixRoutingQueryBuilder withVehicleLengthInMeters(java.lang.Double vehicleLengthInMeters)
vehicleLengthInMeters - public MatrixRoutingQueryBuilder withVehicleWidthInMeters(java.lang.Double vehicleWidthInMeters)
vehicleWidthInMeters - public MatrixRoutingQueryBuilder withVehicleHeightInMeters(java.lang.Double vehicleHeightInMeters)
vehicleHeightInMeters - public MatrixRoutingQueryBuilder withVehicleCommercial(java.lang.Boolean vehicleCommercial)
isVehicleCommercial - public MatrixRoutingQueryBuilder withVehicleLoadType(VehicleLoadType vehicleLoadType)
vehicleLoadType - public MatrixRoutingQueryBuilder withVehicleEngineType(VehicleEngineType vehicleEngineType)
vehicleEngineType - public MatrixRoutingQueryBuilder withConstantSpeedConsumptionInLitersPerHundredKm(SpeedToConsumptionMap constantSpeedConsumptionInLitersPerHundredKm)
constantSpeedConsumptionInLitersPerHundredKm - constraints: size - [1, 25], consumption value - [0.01, 100000.0]public MatrixRoutingQueryBuilder withCurrentFuelInLiters(java.lang.Double currentFuelInLiters)
currentFuelInLiters - public MatrixRoutingQueryBuilder withAuxiliaryPowerInLitersPerHour(java.lang.Double auxiliaryPowerInLitersPerHour)
auxiliaryPowerInLitersPerHour - public MatrixRoutingQueryBuilder withFuelEnergyDensityInMJoulesPerLiter(java.lang.Double fuelEnergyDensityInMJoulesPerLiter)
fuelEnergyDensityInMJoulesPerLiter - public MatrixRoutingQueryBuilder withAccelerationEfficiency(java.lang.Double accelerationEfficiency)
#withAccelerationEfficiency(double).
If used, #withVehicleWeightInKg(int) has to be used as well.decelerationEfficiency - valid values: [0.0, 1/accelerationEfficiency]public MatrixRoutingQueryBuilder withDecelerationEfficiency(java.lang.Double decelerationEfficiency)
#withDownhillEfficiency(double).
If used, #withVehicleWeightInKg(int) has to be used as well.uphillEfficiency - valid values: [0.0, 1/downhillEfficiency]public MatrixRoutingQueryBuilder withUphillEfficiency(java.lang.Double uphillEfficiency)
#withDownhillEfficiency(double).
If used, #withVehicleWeightInKg(int) has to be used as well.uphillEfficiency - valid values: [0.0, 1/downhillEfficiency]public MatrixRoutingQueryBuilder withDownhillEfficiency(java.lang.Double downhillEfficiency)
#withUphillEfficiency(double).
If used, #withVehicleWeightInKg(int) has to be used as well.downhillEfficiency - valid values: [0.0, 1/uphillEfficiency]public MatrixRoutingQueryBuilder withConstantSpeedConsumptionInKWhPerHundredKm(SpeedToConsumptionMap constantSpeedConsumptionInKWhPerHundredKm)
constantSpeedConsumptionInKWhPerHundredKm - constraints: size - [1, 25], consumption value - [0.01, 100000.0]public MatrixRoutingQueryBuilder withCurrentChargeInKWh(java.lang.Double currentChargeInKWh)
#withMaxChargeInKWh(double).currentChargeInKWh - public MatrixRoutingQueryBuilder withMaxChargeInKWh(java.lang.Double maxChargeInKWh)
#withCurrentChargeInKWh(double).maxChargeInKWh - public MatrixRoutingQueryBuilder withAuxiliaryPowerInKW(java.lang.Double auxiliaryPowerInKW)
auxiliaryPowerInKW - public static MatrixRoutingQueryBuilder create(java.util.List<LatLng> origins, java.util.List<LatLng> destinations)
MatrixRoutingQueryBuilder with given origins and destinations lists.origins - list of origin locations used to calculate matrix routes.destinations - list of destination locations used to calculate matrix routes.MatrixRoutingQuery to be used for further processingpublic MatrixRoutingQuery build()
MatrixRoutingQuery