Package com.navmii.sdk.routecalculation
Class ExternalRouteParameters
java.lang.Object
com.navmii.sdk.routecalculation.ExternalRouteParameters
public final class ExternalRouteParameters
extends java.lang.Object
Class describing the route calculation parameters for external routing. Instances of this
class are constructed using values taken from an RouteCalculationOptions instance passed to
the calculateRoute method of RoutingManager.
-
Constructor Summary
Constructors Constructor Description ExternalRouteParameters(boolean isWalkingMode, RoutingOptimization optimization, VehicleType vehicleType, boolean avoidTollRoads, boolean considerTraffic, int maxAlternativeRouteCount, boolean computeEstimatedTimeIgnoringTrafficDelay)
-
Method Summary
Modifier and Type Method Description boolean
getAvoidTollRoads()
Specifies whether toll roads should be avoided.boolean
getComputeEstimatedTimeIgnoringTrafficDelay()
Informs routing engine that it, along with computing the estimated route time, should additionally compute the estimated route time not considering delays caused by traffic.boolean
getConsiderTraffic()
Specifies whether traffic should be considered during route calculation.boolean
getIsWalkingMode()
Specifies whether a route is for pedestrians.int
getMaxAlternativeRouteCount()
Specifies maximum number of alternative routes to calculate.RoutingOptimization
getOptimization()
Specifies route optimization.VehicleType
getVehicleType()
Specifies vehicle type.java.lang.String
toString()
-
Constructor Details
-
ExternalRouteParameters
public ExternalRouteParameters(boolean isWalkingMode, RoutingOptimization optimization, VehicleType vehicleType, boolean avoidTollRoads, boolean considerTraffic, int maxAlternativeRouteCount, boolean computeEstimatedTimeIgnoringTrafficDelay)
-
-
Method Details
-
getIsWalkingMode
public boolean getIsWalkingMode()Specifies whether a route is for pedestrians. -
getOptimization
Specifies route optimization. -
getVehicleType
Specifies vehicle type. -
getAvoidTollRoads
public boolean getAvoidTollRoads()Specifies whether toll roads should be avoided. -
getConsiderTraffic
public boolean getConsiderTraffic()Specifies whether traffic should be considered during route calculation. -
getMaxAlternativeRouteCount
public int getMaxAlternativeRouteCount()Specifies maximum number of alternative routes to calculate. -
getComputeEstimatedTimeIgnoringTrafficDelay
public boolean getComputeEstimatedTimeIgnoringTrafficDelay()Informs routing engine that it, along with computing the estimated route time, should additionally compute the estimated route time not considering delays caused by traffic. The computed value should be put into an ExternalRoute instance. After the route calculation finished the computed value is available via the getEstimatedTimeIgnoringTrafficDelay method of Route class. -
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-