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.Float> speedConsumptionInkWhPairs)
Specifies the speed-dependent component of consumption.
|
RouteQueryBuilder |
withConstantSpeedConsumptionInLiters(java.util.Map<java.lang.Integer,java.lang.Float> 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, wait
getNativeHandle
public 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.IllegalArgumentException
public void dispose()
RouteQuery
dispose
in interface RouteQuery
public RouteQueryBuilder withWayPoints(LatLng[] wayPoints)
RouteQuery
withWayPoints
in interface RouteQuery
public RouteQueryBuilder withMaxAlternatives(int maxAlternatives)
RouteQuery
withMaxAlternatives
in interface RouteQuery
public RouteQueryBuilder withAlternativeType(AlternativeType alternativeType)
RouteQuery
withAlternativeType
in interface RouteQuery
public RouteQueryBuilder withMinDeviationDistance(int minDeviationDistance)
RouteQuery
withMinDeviationDistance
in interface RouteQuery
public RouteQueryBuilder withMinDeviationTime(int minDeviationTime)
RouteQuery
withMinDeviationTime
in interface RouteQuery
public RouteQueryBuilder withInstructionsType(InstructionsType instructionsType)
RouteQuery
withInstructionsType
in interface RouteQuery
public RouteQueryBuilder withLanguage(java.lang.String language)
RouteQuery
withLanguage
in interface RouteQuery
public RouteQueryBuilder withComputeBestOrder(boolean isComputeBestOrder)
RouteQuery
withComputeBestOrder
in interface RouteQuery
public RouteQueryBuilder withRouteRepresentation(RouteRepresentation routeRepresentation)
RouteQuery
withRouteRepresentation
in interface RouteQuery
public RouteQueryBuilder withComputeTravelTimeFor(TravelTimeType computeTravelTimeFor)
RouteQuery
withComputeTravelTimeFor
in interface RouteQuery
public RouteQueryBuilder withVehicleHeading(int vehicleHeading)
RouteQuery
withVehicleHeading
in interface RouteQuery
public RouteQueryBuilder withSectionType(SectionType sectionType)
RouteQuery
withSectionType
in interface RouteQuery
public RouteQueryBuilder withReport(Report report)
RouteQuery
withReport
in interface RouteQuery
public RouteQueryBuilder withDepartAt(java.util.Date departAt)
RouteQuery
withDepartAt
in interface RouteQuery
public RouteQueryBuilder withArriveAt(java.util.Date arriveAt)
RouteQuery
withArriveAt
in interface RouteQuery
public RouteQueryBuilder withRouteType(RouteType routeType)
RouteQuery
withRouteType
in interface RouteQuery
public RouteQueryBuilder withTraffic(boolean isWithTraffic)
RouteQuery
withTraffic
in interface RouteQuery
public RouteQueryBuilder withAvoidType(Avoid avoidType)
RouteQuery
withAvoidType
in interface RouteQuery
public RouteQueryBuilder withTravelMode(TravelMode travelMode)
RouteQuery
withTravelMode
in interface RouteQuery
public RouteQueryBuilder withHilliness(Hilliness hilliness)
RouteQuery
withHilliness
in interface RouteQuery
public RouteQueryBuilder withWindingness(Windingness windingness)
RouteQuery
withWindingness
in interface RouteQuery
public RouteQueryBuilder withVehicleMaxSpeed(int vehicleMaxSpeed)
RouteQuery
withVehicleMaxSpeed
in interface RouteQuery
public RouteQueryBuilder withVehicleWeight(int vehicleWeight)
RouteQuery
withVehicleWeight
in interface RouteQuery
public RouteQueryBuilder withVehicleAxleWeight(int vehicleAxleWeight)
RouteQuery
withVehicleAxleWeight
in interface RouteQuery
public RouteQueryBuilder withVehicleLength(float vehicleLength)
RouteQuery
withVehicleLength
in interface RouteQuery
public RouteQueryBuilder withVehicleWidth(float vehicleWidth)
RouteQuery
withVehicleWidth
in interface RouteQuery
public RouteQueryBuilder withVehicleHeight(float vehicleHeight)
RouteQuery
withVehicleHeight
in interface RouteQuery
public RouteQueryBuilder withVehicleCommercial(boolean isVehicleCommercial)
RouteQuery
withVehicleCommercial
in interface RouteQuery
public RouteQueryBuilder withVehicleLoadType(VehicleLoadType vehicleLoadType)
RouteQuery
withVehicleLoadType
in interface RouteQuery
public RouteQueryBuilder withVehicleEngineType(VehicleEngineType vehicleEngineType)
RouteQuery
withVehicleEngineType
in interface RouteQuery
public RouteQueryBuilder withConstantSpeedConsumptionInLiters(java.util.Map<java.lang.Integer,java.lang.Float> speedConsumptionInLitersPairs)
RouteQuery
withConstantSpeedConsumptionInLiters
in interface RouteQuery
public RouteQueryBuilder withCurrentFuelInLiters(float currentFuelInLiters)
RouteQuery
withCurrentFuelInLiters
in interface RouteQuery
public RouteQueryBuilder withAuxiliaryPowerInLitersPerHour(float auxiliaryPowerInLitersPerHour)
RouteQuery
withAuxiliaryPowerInLitersPerHour
in interface RouteQuery
public RouteQueryBuilder withFuelEnergyDensityInMJoulesPerLiter(float fuelEnergyDensityInMJoulesPerLiter)
RouteQuery
withFuelEnergyDensityInMJoulesPerLiter
in interface RouteQuery
public RouteQueryBuilder withAccelerationEfficiency(float accelerationEfficiency)
RouteQuery
withAccelerationEfficiency
in interface RouteQuery
public RouteQueryBuilder withDecelerationEfficiency(float decelerationEfficiency)
RouteQuery
withDecelerationEfficiency
in interface RouteQuery
public RouteQueryBuilder withUphillEfficiency(float uphillEfficiency)
RouteQuery
withUphillEfficiency
in interface RouteQuery
public RouteQueryBuilder withDownhillEfficiency(float downhillEfficiency)
RouteQuery
withDownhillEfficiency
in interface RouteQuery
public RouteQueryBuilder withConstantSpeedConsumptionInkWh(java.util.Map<java.lang.Integer,java.lang.Float> speedConsumptionInkWhPairs)
RouteQuery
withConstantSpeedConsumptionInkWh
in interface RouteQuery
public RouteQueryBuilder withCurrentChargeInkWh(float currentChargeInkWh)
RouteQuery
withCurrentChargeInkWh
in interface RouteQuery
public RouteQueryBuilder withMaxChargeInkWh(float maxChargeInkWh)
RouteQuery
withMaxChargeInkWh
in interface RouteQuery
public RouteQueryBuilder withAuxiliaryPowerInkW(float auxiliaryPowerInkW)
RouteQuery
withAuxiliaryPowerInkW
in interface RouteQuery
public RouteQueryBuilder withSupportingPoints(java.util.List<LatLng> supportingPoints)
RouteQuery
withSupportingPoints
in interface RouteQuery
public RouteQueryBuilder withAvoidVignettes(@NonNull java.util.List<java.lang.String> avoidVignettes)
RouteQuery
withAvoidVignettes
in interface RouteQuery