public class RouteQueryBuilder extends java.lang.Object implements IRouteQuery
RouteQuery object which is used to prepare the query for the Routing API.| Constructor and Description |
|---|
RouteQueryBuilder(LatLng origPosition,
LatLng destPosition) |
| Modifier and Type | Method and Description |
|---|---|
RouteQuery |
build()
Creates new instance of
RouteQuery |
static RouteQueryBuilder |
create(LatLng origPosition,
LatLng destPosition)
Creates an instance of
RouteQuery with given origin and destination. |
RouteQueryBuilder |
withAccelerationEfficiency(java.lang.Double accelerationEfficiency)
Specifies the efficiency of converting kinetic energy to saved (not consumed) fuel when the
vehicle decelerates (i.e.
|
RouteQueryBuilder |
withAllowVignette(java.lang.String allowVignette) |
RouteQueryBuilder |
withAllowVignettes(java.util.List<java.lang.String> allowVignettes)
List of 3-character ISO 3166-1 alpha-3 country codes of countries in which all toll roads with vignettes are allowed.
|
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(java.lang.Double auxiliaryPowerInKW)
Specifies the amount of power consumed for sustaining auxiliary systems, in kilowatts (kW).
|
RouteQueryBuilder |
withAuxiliaryPowerInLitersPerHour(java.lang.Double auxiliaryPowerInLitersPerHour)
Specifies the amount of fuel consumed for sustaining auxiliary systems of the vehicle, in
liters per hour.
|
RouteQueryBuilder |
withAvoidArea(com.tomtom.online.sdk.common.location.BoundingBox avoidArea) |
RouteQueryBuilder |
withAvoidAreas(java.util.List<com.tomtom.online.sdk.common.location.BoundingBox> avoidAreas)
A list of rectangles that define areas that are to be avoided during route calculation.
|
RouteQueryBuilder |
withAvoidType(Avoid avoidType)
Specifies what the route calculation should try to avoid when determining the route.Can be specified multiple times.
|
RouteQueryBuilder |
withAvoidVignette(java.lang.String avoidVignette) |
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(java.lang.Boolean computeBestOrder)
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 |
withConsiderTraffic(java.lang.Boolean considerTraffic)
Specifies if all available traffic information should be considered during routing.
|
RouteQueryBuilder |
withConstantSpeedConsumptionInKWhPerHundredKm(SpeedToConsumptionMap constantSpeedConsumptionInKWhPerHundredKm)
Specifies the speed-dependent component of consumption.
|
RouteQueryBuilder |
withConstantSpeedConsumptionInLitersPerHundredKm(SpeedToConsumptionMap constantSpeedConsumptionInLitersPerHundredKm)
Specifies the speed-dependent component of consumption.
|
RouteQueryBuilder |
withCurrentChargeInKWh(java.lang.Double currentChargeInKWh)
Specifies the current electric energy supply in kilowatt hours (kWh).
|
RouteQueryBuilder |
withCurrentFuelInLiters(java.lang.Double currentFuelInLiters)
Specifies the current supply of fuel in liters.
|
RouteQueryBuilder |
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.
|
RouteQueryBuilder |
withDepartAt(java.util.Date departAt)
Specifies the departure time.
|
RouteQueryBuilder |
withDownhillEfficiency(java.lang.Double downhillEfficiency)
Specifies the efficiency of converting potential energy to saved (not consumed) fuel when the
vehicle loses elevation (i.e.
|
RouteQueryBuilder |
withFuelEnergyDensityInMJoulesPerLiter(java.lang.Double 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(java.lang.Integer maxAlternatives)
Specifies the maximal number of route alternatives to be calculated by service.
|
RouteQueryBuilder |
withMaxChargeInKWh(java.lang.Double maxChargeInKWh)
Specifies the capacity of the vehicle's battery in kilowatt hours (kWh).
|
RouteQueryBuilder |
withMinDeviationDistance(java.lang.Integer 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(java.lang.Integer 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.
|
RouteQueryBuilder |
withSectionType(SectionType sectionType)
Specifies which of the section types is reported in the route response.
|
RouteQueryBuilder |
withSupportingPoint(LatLng supportingPoint) |
RouteQueryBuilder |
withSupportingPoints(java.util.List<LatLng> supportingPoints)
A list of base route points to be used as input for route reconstruction.
|
RouteQueryBuilder |
withTravelMode(TravelMode travelMode)
Specifies the travel mode for route calculation.
|
RouteQueryBuilder |
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.
|
RouteQueryBuilder |
withVehicleAxleWeightInKg(java.lang.Integer vehicleAxleWeightInKg)
Specifies the vehicle axle weight for route calculation.
|
RouteQueryBuilder |
withVehicleCommercial(java.lang.Boolean vehicleCommercial)
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(java.lang.Integer vehicleHeading)
Specifies the vehicle heading for route calculation.
|
RouteQueryBuilder |
withVehicleHeightInMeters(java.lang.Double vehicleHeightInMeters)
Specifies the vehicle height for route calculation.
|
RouteQueryBuilder |
withVehicleLengthInMeters(java.lang.Double vehicleLengthInMeters)
Specifies the vehicle length for route calculation.
|
RouteQueryBuilder |
withVehicleLoadType(VehicleLoadType vehicleLoadType)
Specifies the vehicle load type for route calculation.
|
RouteQueryBuilder |
withVehicleMaxSpeedInKph(java.lang.Integer vehicleMaxSpeedInKph)
Specifies the vehicle max speed for route calculation.
|
RouteQueryBuilder |
withVehicleWeightInKg(java.lang.Integer vehicleWeightInKg)
Specifies the vehicle weight in kilograms for route calculation.
|
RouteQueryBuilder |
withVehicleWidthInMeters(java.lang.Double vehicleWidthInMeters)
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 |
withWayPointsList(java.util.List<LatLng> wayPointsList)
Specifies the array of map coordinate whose geographical information your waypoints for the route calculation.
|
RouteQueryBuilder |
withWayPointsWithAcc(java.util.List<com.tomtom.online.sdk.common.location.LatLngAcc> wayPointsWithAcc)
Specifies the array of map coordinate whose geographical information your waypoints with radius for the route calculation.
|
RouteQueryBuilder |
withWindingness(Windingness windingness)
Specifies the windingness type for route calculation.
|
public RouteQueryBuilder withWayPoints(LatLng[] wayPoints)
IRouteQuerywithWayPoints in interface IRouteQuerypublic RouteQueryBuilder withWayPointsList(java.util.List<LatLng> wayPointsList)
IRouteQuerywithWayPointsList in interface IRouteQuerypublic RouteQueryBuilder withWayPointsWithAcc(java.util.List<com.tomtom.online.sdk.common.location.LatLngAcc> wayPointsWithAcc)
IRouteQuerywithWayPointsWithAcc in interface IRouteQuerypublic RouteQueryBuilder withMaxAlternatives(java.lang.Integer maxAlternatives)
IRouteQuerywithMaxAlternatives in interface IRouteQuerypublic RouteQueryBuilder withAlternativeType(AlternativeType alternativeType)
IRouteQuerywithAlternativeType in interface IRouteQuerypublic RouteQueryBuilder withMinDeviationDistance(java.lang.Integer minDeviationDistance)
IRouteQuerywithMinDeviationDistance in interface IRouteQuerypublic RouteQueryBuilder withMinDeviationTime(java.lang.Integer minDeviationTime)
IRouteQuerywithMinDeviationTime in interface IRouteQuerypublic RouteQueryBuilder withInstructionsType(InstructionsType instructionsType)
IRouteQuerywithInstructionsType in interface IRouteQuerypublic RouteQueryBuilder withLanguage(java.lang.String language)
IRouteQuerywithLanguage in interface IRouteQuerypublic RouteQueryBuilder withComputeBestOrder(java.lang.Boolean computeBestOrder)
IRouteQuerywithComputeBestOrder in interface IRouteQuerypublic RouteQueryBuilder withRouteRepresentation(RouteRepresentation routeRepresentation)
IRouteQuerywithRouteRepresentation in interface IRouteQuerypublic RouteQueryBuilder withComputeTravelTimeFor(TravelTimeType computeTravelTimeFor)
IRouteQuerywithComputeTravelTimeFor in interface IRouteQuerypublic RouteQueryBuilder withVehicleHeading(java.lang.Integer vehicleHeading)
IRouteQuerywithVehicleHeading in interface IRouteQuerypublic RouteQueryBuilder withSectionType(SectionType sectionType)
IRouteQuerywithSectionType in interface IRouteQuerypublic RouteQueryBuilder withReport(Report report)
IRouteQuerywithReport in interface IRouteQuerypublic RouteQueryBuilder withSupportingPoint(LatLng supportingPoint)
public RouteQueryBuilder withSupportingPoints(java.util.List<LatLng> supportingPoints)
IRouteQuerywithSupportingPoints in interface IRouteQuerypublic RouteQueryBuilder withAvoidVignette(java.lang.String avoidVignette)
public RouteQueryBuilder withAvoidVignettes(java.util.List<java.lang.String> avoidVignettes)
IRouteQuerywithAvoidVignettes in interface IRouteQuerypublic RouteQueryBuilder withAllowVignette(java.lang.String allowVignette)
public RouteQueryBuilder withAllowVignettes(java.util.List<java.lang.String> allowVignettes)
IRouteQuerywithAllowVignettes in interface IRouteQuerypublic RouteQueryBuilder withArriveAt(java.util.Date arriveAt)
IRouteQuerywithArriveAt in interface IRouteQuerypublic RouteQueryBuilder withAvoidArea(com.tomtom.online.sdk.common.location.BoundingBox avoidArea)
public RouteQueryBuilder withAvoidAreas(java.util.List<com.tomtom.online.sdk.common.location.BoundingBox> avoidAreas)
IRouteQuerywithAvoidAreas in interface IRouteQuerypublic RouteQueryBuilder withDepartAt(java.util.Date departAt)
withDepartAt in interface IRouteQuerydepartAt - public RouteQueryBuilder withRouteType(RouteType routeType)
withRouteType in interface IRouteQueryrouteType - public RouteQueryBuilder withConsiderTraffic(java.lang.Boolean considerTraffic)
withConsiderTraffic in interface IRouteQueryconsiderTraffic - public RouteQueryBuilder withAvoidType(Avoid avoidType)
withAvoidType in interface IRouteQueryavoidType - public RouteQueryBuilder withTravelMode(TravelMode travelMode)
withTravelMode in interface IRouteQuerytravelMode - public RouteQueryBuilder withHilliness(Hilliness hilliness)
withHilliness in interface IRouteQueryhilliness - public RouteQueryBuilder withWindingness(Windingness windingness)
withWindingness in interface IRouteQuerywindingness - public RouteQueryBuilder withVehicleMaxSpeedInKph(java.lang.Integer vehicleMaxSpeedInKph)
withVehicleMaxSpeedInKph in interface IRouteQueryvehicleMaxSpeedInKph - public RouteQueryBuilder withVehicleWeightInKg(java.lang.Integer vehicleWeightInKg)
withVehicleWeightInKg in interface IRouteQueryvehicleWeightInKg - public RouteQueryBuilder withVehicleAxleWeightInKg(java.lang.Integer vehicleAxleWeightInKg)
withVehicleAxleWeightInKg in interface IRouteQueryvehicleAxleWeightInKg - public RouteQueryBuilder withVehicleLengthInMeters(java.lang.Double vehicleLengthInMeters)
withVehicleLengthInMeters in interface IRouteQueryvehicleLengthInMeters - public RouteQueryBuilder withVehicleWidthInMeters(java.lang.Double vehicleWidthInMeters)
withVehicleWidthInMeters in interface IRouteQueryvehicleWidthInMeters - public RouteQueryBuilder withVehicleHeightInMeters(java.lang.Double vehicleHeightInMeters)
withVehicleHeightInMeters in interface IRouteQueryvehicleHeightInMeters - public RouteQueryBuilder withVehicleCommercial(java.lang.Boolean vehicleCommercial)
withVehicleCommercial in interface IRouteQueryisVehicleCommercial - public RouteQueryBuilder withVehicleLoadType(VehicleLoadType vehicleLoadType)
withVehicleLoadType in interface IRouteQueryvehicleLoadType - public RouteQueryBuilder withVehicleEngineType(VehicleEngineType vehicleEngineType)
withVehicleEngineType in interface IRouteQueryvehicleEngineType - public RouteQueryBuilder withConstantSpeedConsumptionInLitersPerHundredKm(SpeedToConsumptionMap constantSpeedConsumptionInLitersPerHundredKm)
withConstantSpeedConsumptionInLitersPerHundredKm in interface IRouteQueryconstantSpeedConsumptionInLitersPerHundredKm - constraints: size - [1, 25], consumption value - [0.01, 100000.0]public RouteQueryBuilder withCurrentFuelInLiters(java.lang.Double currentFuelInLiters)
withCurrentFuelInLiters in interface IRouteQuerycurrentFuelInLiters - public RouteQueryBuilder withAuxiliaryPowerInLitersPerHour(java.lang.Double auxiliaryPowerInLitersPerHour)
withAuxiliaryPowerInLitersPerHour in interface IRouteQueryauxiliaryPowerInLitersPerHour - public RouteQueryBuilder withFuelEnergyDensityInMJoulesPerLiter(java.lang.Double fuelEnergyDensityInMJoulesPerLiter)
withFuelEnergyDensityInMJoulesPerLiter in interface IRouteQueryfuelEnergyDensityInMJoulesPerLiter - public RouteQueryBuilder withAccelerationEfficiency(java.lang.Double accelerationEfficiency)
#withAccelerationEfficiency(double).
If used, #withVehicleWeightInKg(int) has to be used as well.withAccelerationEfficiency in interface IRouteQuerydecelerationEfficiency - valid values: [0.0, 1/accelerationEfficiency]public RouteQueryBuilder withDecelerationEfficiency(java.lang.Double decelerationEfficiency)
#withDownhillEfficiency(double).
If used, #withVehicleWeightInKg(int) has to be used as well.withDecelerationEfficiency in interface IRouteQueryuphillEfficiency - valid values: [0.0, 1/downhillEfficiency]public RouteQueryBuilder withUphillEfficiency(java.lang.Double uphillEfficiency)
#withDownhillEfficiency(double).
If used, #withVehicleWeightInKg(int) has to be used as well.withUphillEfficiency in interface IRouteQueryuphillEfficiency - valid values: [0.0, 1/downhillEfficiency]public RouteQueryBuilder withDownhillEfficiency(java.lang.Double downhillEfficiency)
#withUphillEfficiency(double).
If used, #withVehicleWeightInKg(int) has to be used as well.withDownhillEfficiency in interface IRouteQuerydownhillEfficiency - valid values: [0.0, 1/uphillEfficiency]public RouteQueryBuilder withConstantSpeedConsumptionInKWhPerHundredKm(SpeedToConsumptionMap constantSpeedConsumptionInKWhPerHundredKm)
withConstantSpeedConsumptionInKWhPerHundredKm in interface IRouteQueryconstantSpeedConsumptionInKWhPerHundredKm - constraints: size - [1, 25], consumption value - [0.01, 100000.0]public RouteQueryBuilder withCurrentChargeInKWh(java.lang.Double currentChargeInKWh)
#withMaxChargeInKWh(double).withCurrentChargeInKWh in interface IRouteQuerycurrentChargeInKWh - public RouteQueryBuilder withMaxChargeInKWh(java.lang.Double maxChargeInKWh)
#withCurrentChargeInKWh(double).withMaxChargeInKWh in interface IRouteQuerymaxChargeInKWh - public RouteQueryBuilder withAuxiliaryPowerInKW(java.lang.Double auxiliaryPowerInKW)
withAuxiliaryPowerInKW in interface IRouteQueryauxiliaryPowerInKW - public static RouteQueryBuilder create(LatLng origPosition, LatLng destPosition)
RouteQuery with given origin and destination.RouteQuery to be used for further processingpublic RouteQuery build()
RouteQuery