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.
|
long |
getNativeHandle()
Get query id, must be unique.
|
RouteQueryBuilder |
withArriveAt(java.lang.String arriveAt)
Specifies the desired arrival time for the route to calculation.
|
RouteQueryBuilder |
withAvoidType(Avoid avoidType)
Specifies what the route calculation should try to avoid when determining the route.
|
RouteQueryBuilder |
withCallback(java.lang.String callback)
Adds the callback to route query.
|
RouteQueryBuilder |
withComputeBestOrder(boolean isComputeBestOrder)
Specifies if the best order of waypoints should be used to compute route.
|
RouteQueryBuilder |
withComputeTravelTimeFor(java.lang.String 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 |
withDepartAt(java.lang.String departAt)
Specifies the departure time for the route to calculation.
|
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 |
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 |
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 |
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(java.lang.String vehicleEngineType)
Specifies the vehicle engine type for route query.
|
RouteQueryBuilder |
withVehicleHeading(int vehicleHeading)
Specifies the vehicle heading for route calculation.
|
RouteQueryBuilder |
withVehicleHeight(double vehicleHeight)
Specifies the vehicle height for route calculation.
|
RouteQueryBuilder |
withVehicleLength(double vehicleLength)
Specifies the vehicle length for route calculation.
|
RouteQueryBuilder |
withVehicleLoadType(java.lang.String 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 for route calculation.
|
RouteQueryBuilder |
withVehicleWidth(double 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.
|
public void dispose()
RouteQuery
dispose
in interface RouteQuery
public RouteQueryBuilder withWayPoints(LatLng[] wayPoints)
withWayPoints
in interface RouteQuery
public RouteQueryBuilder withRouteType(RouteType routeType)
withRouteType
in interface RouteQuery
public RouteQueryBuilder withTraffic(boolean isWithTraffic)
withTraffic
in interface RouteQuery
public RouteQueryBuilder withAvoidType(Avoid avoidType)
withAvoidType
in interface RouteQuery
public RouteQueryBuilder withInstructionsType(InstructionsType instructionsType)
withInstructionsType
in interface RouteQuery
public RouteQueryBuilder withLanguage(java.lang.String language)
withLanguage
in interface RouteQuery
public RouteQueryBuilder withDepartAt(java.lang.String departAt)
withDepartAt
in interface RouteQuery
public RouteQueryBuilder withArriveAt(java.lang.String arriveAt)
withArriveAt
in interface RouteQuery
public RouteQueryBuilder withMaxAlternatives(int maxAlternatives)
withMaxAlternatives
in interface RouteQuery
public RouteQueryBuilder withComputeBestOrder(boolean isComputeBestOrder)
withComputeBestOrder
in interface RouteQuery
public RouteQueryBuilder withRouteRepresentation(RouteRepresentation routeRepresentation)
withRouteRepresentation
in interface RouteQuery
public RouteQueryBuilder withTravelMode(TravelMode travelMode)
withTravelMode
in interface RouteQuery
public RouteQueryBuilder withCallback(java.lang.String callback)
withCallback
in interface RouteQuery
public RouteQueryBuilder withComputeTravelTimeFor(java.lang.String computeTravelTimeFor)
withComputeTravelTimeFor
in interface RouteQuery
public RouteQueryBuilder withVehicleEngineType(java.lang.String vehicleEngineType)
withVehicleEngineType
in interface RouteQuery
public RouteQueryBuilder withVehicleMaxSpeed(int vehicleMaxSpeed)
withVehicleMaxSpeed
in interface RouteQuery
public RouteQueryBuilder withVehicleWeight(int vehicleWeight)
withVehicleWeight
in interface RouteQuery
public RouteQueryBuilder withVehicleAxleWeight(int vehicleAxleWeight)
withVehicleAxleWeight
in interface RouteQuery
public RouteQueryBuilder withVehicleLength(double vehicleLength)
withVehicleLength
in interface RouteQuery
public RouteQueryBuilder withVehicleWidth(double vehicleWidth)
withVehicleWidth
in interface RouteQuery
public RouteQueryBuilder withVehicleHeight(double vehicleHeight)
withVehicleHeight
in interface RouteQuery
public RouteQueryBuilder withVehicleCommercial(boolean isVehicleCommercial)
withVehicleCommercial
in interface RouteQuery
public RouteQueryBuilder withVehicleLoadType(java.lang.String vehicleLoadType)
withVehicleLoadType
in interface RouteQuery
public RouteQueryBuilder withVehicleHeading(int vehicleHeading)
withVehicleHeading
in interface RouteQuery
public RouteQueryBuilder withHilliness(Hilliness hilliness)
withHilliness
in interface RouteQuery
public RouteQueryBuilder withWindingness(Windingness windingness)
withWindingness
in interface RouteQuery
public RouteQueryBuilder withReport(Report report)
withReport
in interface RouteQuery
public long getNativeHandle()
RouteQuery
getNativeHandle
in interface RouteQuery