public class RouteQueryBuilder extends java.lang.Object implements RouteQuery
| Constructor and Description |
|---|
RouteQueryBuilder(LatLng origPosition,
LatLng destPosition) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Remove all internal references, clear memory.
|
RouteQueryBuilder |
withAccelerationEfficiency(float accelerationEfficiency)
Specifies the efficiency of converting chemical energy stored in fuel to kinetic
energy when the vehicle accelerates (i.e.
|
RouteQueryBuilder |
withAlternativeType(AlternativeType alternativeType)
Controls the optimality, with respect to the given planning criteria, of the calculated alternatives compared to the reference route.
|
RouteQueryBuilder |
withArriveAt(java.util.Date arriveAt)
Specifies the desired arrival time for the route to calculation.
|
RouteQueryBuilder |
withAuxiliaryPowerInkW(float auxiliaryPowerInkW)
Specifies the amount of power consumed for sustaining auxiliary systems, in kilowatts (kW).
|
RouteQueryBuilder |
withAuxiliaryPowerInLitersPerHour(float auxiliaryPowerInLitersPerHour)
Specifies the amount of fuel consumed for sustaining auxiliary systems of the vehicle, in liters per hour.
|
RouteQueryBuilder |
withAvoidType(Avoid avoidType)
Specifies what the route calculation should try to avoid when determining the route.
|
RouteQueryBuilder |
withAvoidVignettes(java.util.List<java.lang.String> avoidVignettes)
List of 3-character ISO 3166-1 alpha-3 country codes of countries in which all toll roads with vignettes are to be avoided.
|
RouteQueryBuilder |
withComputeBestOrder(boolean isComputeBestOrder)
Specifies if the best order of waypoints should be used to compute route.
|
RouteQueryBuilder |
withComputeTravelTimeFor(TravelTimeType computeTravelTimeFor)
Specifies whether to return additional travel times using different types of traffic information (none, historic, live)
as well as the default best-estimate travel time.
|
RouteQueryBuilder |
withConstantSpeedConsumptionInkWh(java.util.Map<java.lang.Integer,java.lang.Double> speedConsumptionInkWhPairs)
Specifies the speed-dependent component of consumption.
|
RouteQueryBuilder |
withConstantSpeedConsumptionInLiters(java.util.Map<java.lang.Integer,java.lang.Double> speedConsumptionInLitersPairs)
Specifies the speed-dependent component of consumption.
|
RouteQueryBuilder |
withCurrentChargeInkWh(float currentChargeInkWh)
Specifies the current electric energy supply in kilowatt hours (kWh).
|
RouteQueryBuilder |
withCurrentFuelInLiters(float currentFuelInLiters)
Specifies the current supply of fuel in liters.
|
RouteQueryBuilder |
withDecelerationEfficiency(float decelerationEfficiency)
Specifies the efficiency of converting kinetic energy to saved (not consumed) fuel when the vehicle decelerates
(i.e.
|
RouteQueryBuilder |
withDepartAt(java.util.Date departAt)
Specifies the departure time for the route to calculation.
|
RouteQueryBuilder |
withDownhillEfficiency(float downhillEfficiency)
Specifies the efficiency of converting potential energy to saved (not consumed) fuel when the vehicle loses elevation
(i.e.
|
RouteQueryBuilder |
withFuelEnergyDensityInMJoulesPerLiter(float fuelEnergyDensityInMJoulesPerLiter)
Specifies the amount of chemical energy stored in one liter of fuel in megajoules (MJ).
|
RouteQueryBuilder |
withHilliness(Hilliness hilliness)
Specifies the hilliness type for route calculation.
|
RouteQueryBuilder |
withInstructionsType(InstructionsType instructionsType)
Specifies the instructions type for the route calculation.
|
RouteQueryBuilder |
withLanguage(java.lang.String language)
Specifies the language used for route calculation.
|
RouteQueryBuilder |
withMaxAlternatives(int maxAlternatives)
Specifies the maximal number of route alternatives to be calculated by service.
|
RouteQueryBuilder |
withMaxChargeInkWh(float maxChargeInkWh)
Specifies the maximum electric energy supply in kilowatt hours (kWh) that may be stored in the vehicle's battery.
|
RouteQueryBuilder |
withMinDeviationDistance(int minDeviationDistance)
All alternative routes returned will follow the reference route from the origin
point of the calculateRoute request for at least this number of meters.
|
RouteQueryBuilder |
withMinDeviationTime(int minDeviationTime)
All alternative routes returned will follow the reference route from the origin
point of the calculateRoute request for at least this number of seconds.
|
RouteQueryBuilder |
withReport(Report report)
Specifies if the report should be provided on route query response.
|
RouteQueryBuilder |
withRouteRepresentation(RouteRepresentation routeRepresentation)
Specifies the route representation for the route calculation.
|
RouteQueryBuilder |
withRouteType(RouteType routeType)
Specifies the route type for the route calculation.
|
RouteQueryBuilder |
withSectionType(SectionType sectionType)
Specifies which of the section types is reported in the route response.
|
RouteQueryBuilder |
withSupportingPoints(java.util.List<LatLng> supportingPoints)
A list of base route points to be used as input for route reconstruction.
|
RouteQueryBuilder |
withTraffic(boolean isWithTraffic)
Specifies if it should consider all available traffic information during routing.
|
RouteQueryBuilder |
withTravelMode(TravelMode travelMode)
Specifies the travel mode for the route calculation.
|
RouteQueryBuilder |
withUphillEfficiency(float uphillEfficiency)
Specifies the efficiency of converting chemical energy stored in fuel to potential energy when the vehicle gains elevation
(i.e.
|
RouteQueryBuilder |
withVehicleAxleWeight(int vehicleAxleWeight)
Specifies the vehicle axle weight for route calculation.
|
RouteQueryBuilder |
withVehicleCommercial(boolean isVehicleCommercial)
Specifies if the vehicle is used for commercial to calculate route.
|
RouteQueryBuilder |
withVehicleEngineType(VehicleEngineType vehicleEngineType)
Specifies the vehicle engine type for route query.
|
RouteQueryBuilder |
withVehicleHeading(int vehicleHeading)
Specifies the vehicle heading for route calculation.
|
RouteQueryBuilder |
withVehicleHeight(float vehicleHeight)
Specifies the vehicle height for route calculation.
|
RouteQueryBuilder |
withVehicleLength(float vehicleLength)
Specifies the vehicle length for route calculation.
|
RouteQueryBuilder |
withVehicleLoadType(VehicleLoadType vehicleLoadType)
Specifies the vehicle load type for route calculation.
|
RouteQueryBuilder |
withVehicleMaxSpeed(int vehicleMaxSpeed)
Specifies the vehicle max speed for route calculation.
|
RouteQueryBuilder |
withVehicleWeight(int vehicleWeight)
Specifies the vehicle weight in kilograms for route calculation.
|
RouteQueryBuilder |
withVehicleWidth(float vehicleWidth)
Specifies the vehicle width for route calculation.
|
RouteQueryBuilder |
withWayPoints(LatLng[] wayPoints)
Specifies the array of map coordinate whose geographical information your waypoints for the route calculation.
|
RouteQueryBuilder |
withWindingness(Windingness windingness)
Specifies the windingness type for route calculation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNativeHandlepublic RouteQueryBuilder(LatLng origPosition, LatLng destPosition) throws java.lang.IllegalArgumentException
origPosition - A location of the origin defined as a latitude longitude pair.destPosition - A location of the destination defined as a latitude longitude pair.java.lang.IllegalArgumentExceptionpublic void dispose()
RouteQuerydispose in interface RouteQuerypublic RouteQueryBuilder withWayPoints(LatLng[] wayPoints)
RouteQuerywithWayPoints in interface RouteQuerypublic RouteQueryBuilder withMaxAlternatives(int maxAlternatives)
RouteQuerywithMaxAlternatives in interface RouteQuerypublic RouteQueryBuilder withAlternativeType(AlternativeType alternativeType)
RouteQuerywithAlternativeType in interface RouteQuerypublic RouteQueryBuilder withMinDeviationDistance(int minDeviationDistance)
RouteQuerywithMinDeviationDistance in interface RouteQuerypublic RouteQueryBuilder withMinDeviationTime(int minDeviationTime)
RouteQuerywithMinDeviationTime in interface RouteQuerypublic RouteQueryBuilder withInstructionsType(InstructionsType instructionsType)
RouteQuerywithInstructionsType in interface RouteQuerypublic RouteQueryBuilder withLanguage(java.lang.String language)
RouteQuerywithLanguage in interface RouteQuerypublic RouteQueryBuilder withComputeBestOrder(boolean isComputeBestOrder)
RouteQuerywithComputeBestOrder in interface RouteQuerypublic RouteQueryBuilder withRouteRepresentation(RouteRepresentation routeRepresentation)
RouteQuerywithRouteRepresentation in interface RouteQuerypublic RouteQueryBuilder withComputeTravelTimeFor(TravelTimeType computeTravelTimeFor)
RouteQuerywithComputeTravelTimeFor in interface RouteQuerypublic RouteQueryBuilder withVehicleHeading(int vehicleHeading)
RouteQuerywithVehicleHeading in interface RouteQuerypublic RouteQueryBuilder withSectionType(SectionType sectionType)
RouteQuerywithSectionType in interface RouteQuerypublic RouteQueryBuilder withReport(Report report)
RouteQuerywithReport in interface RouteQuerypublic RouteQueryBuilder withDepartAt(java.util.Date departAt)
RouteQuerywithDepartAt in interface RouteQuerypublic RouteQueryBuilder withArriveAt(java.util.Date arriveAt)
RouteQuerywithArriveAt in interface RouteQuerypublic RouteQueryBuilder withRouteType(RouteType routeType)
RouteQuerywithRouteType in interface RouteQuerypublic RouteQueryBuilder withTraffic(boolean isWithTraffic)
RouteQuerywithTraffic in interface RouteQuerypublic RouteQueryBuilder withAvoidType(Avoid avoidType)
RouteQuerywithAvoidType in interface RouteQuerypublic RouteQueryBuilder withTravelMode(TravelMode travelMode)
RouteQuerywithTravelMode in interface RouteQuerypublic RouteQueryBuilder withHilliness(Hilliness hilliness)
RouteQuerywithHilliness in interface RouteQuerypublic RouteQueryBuilder withWindingness(Windingness windingness)
RouteQuerywithWindingness in interface RouteQuerypublic RouteQueryBuilder withVehicleMaxSpeed(int vehicleMaxSpeed)
RouteQuerywithVehicleMaxSpeed in interface RouteQuerypublic RouteQueryBuilder withVehicleWeight(int vehicleWeight)
RouteQuerywithVehicleWeight in interface RouteQuerypublic RouteQueryBuilder withVehicleAxleWeight(int vehicleAxleWeight)
RouteQuerywithVehicleAxleWeight in interface RouteQuerypublic RouteQueryBuilder withVehicleLength(float vehicleLength)
RouteQuerywithVehicleLength in interface RouteQuerypublic RouteQueryBuilder withVehicleWidth(float vehicleWidth)
RouteQuerywithVehicleWidth in interface RouteQuerypublic RouteQueryBuilder withVehicleHeight(float vehicleHeight)
RouteQuerywithVehicleHeight in interface RouteQuerypublic RouteQueryBuilder withVehicleCommercial(boolean isVehicleCommercial)
RouteQuerywithVehicleCommercial in interface RouteQuerypublic RouteQueryBuilder withVehicleLoadType(VehicleLoadType vehicleLoadType)
RouteQuerywithVehicleLoadType in interface RouteQuerypublic RouteQueryBuilder withVehicleEngineType(VehicleEngineType vehicleEngineType)
RouteQuerywithVehicleEngineType in interface RouteQuerypublic RouteQueryBuilder withConstantSpeedConsumptionInLiters(java.util.Map<java.lang.Integer,java.lang.Double> speedConsumptionInLitersPairs)
RouteQuerywithConstantSpeedConsumptionInLiters in interface RouteQuerypublic RouteQueryBuilder withCurrentFuelInLiters(float currentFuelInLiters)
RouteQuerywithCurrentFuelInLiters in interface RouteQuerypublic RouteQueryBuilder withAuxiliaryPowerInLitersPerHour(float auxiliaryPowerInLitersPerHour)
RouteQuerywithAuxiliaryPowerInLitersPerHour in interface RouteQuerypublic RouteQueryBuilder withFuelEnergyDensityInMJoulesPerLiter(float fuelEnergyDensityInMJoulesPerLiter)
RouteQuerywithFuelEnergyDensityInMJoulesPerLiter in interface RouteQuerypublic RouteQueryBuilder withAccelerationEfficiency(float accelerationEfficiency)
RouteQuerywithAccelerationEfficiency in interface RouteQuerypublic RouteQueryBuilder withDecelerationEfficiency(float decelerationEfficiency)
RouteQuerywithDecelerationEfficiency in interface RouteQuerypublic RouteQueryBuilder withUphillEfficiency(float uphillEfficiency)
RouteQuerywithUphillEfficiency in interface RouteQuerypublic RouteQueryBuilder withDownhillEfficiency(float downhillEfficiency)
RouteQuerywithDownhillEfficiency in interface RouteQuerypublic RouteQueryBuilder withConstantSpeedConsumptionInkWh(java.util.Map<java.lang.Integer,java.lang.Double> speedConsumptionInkWhPairs)
RouteQuerywithConstantSpeedConsumptionInkWh in interface RouteQuerypublic RouteQueryBuilder withCurrentChargeInkWh(float currentChargeInkWh)
RouteQuerywithCurrentChargeInkWh in interface RouteQuerypublic RouteQueryBuilder withMaxChargeInkWh(float maxChargeInkWh)
RouteQuerywithMaxChargeInkWh in interface RouteQuerypublic RouteQueryBuilder withAuxiliaryPowerInkW(float auxiliaryPowerInkW)
RouteQuerywithAuxiliaryPowerInkW in interface RouteQuerypublic RouteQueryBuilder withSupportingPoints(java.util.List<LatLng> supportingPoints)
RouteQuerywithSupportingPoints in interface RouteQuerypublic RouteQueryBuilder withAvoidVignettes(@NonNull java.util.List<java.lang.String> avoidVignettes)
RouteQuerywithAvoidVignettes in interface RouteQuery