Class 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 Detail

      • ExternalRouteParameters

        public ExternalRouteParameters​(boolean isWalkingMode,
                                       RoutingOptimization optimization,
                                       VehicleType vehicleType,
                                       boolean avoidTollRoads,
                                       boolean considerTraffic,
                                       int maxAlternativeRouteCount,
                                       boolean computeEstimatedTimeIgnoringTrafficDelay)
    • Method Detail

      • getIsWalkingMode

        public boolean getIsWalkingMode()
        Specifies whether a route is for pedestrians.
      • getVehicleType

        public VehicleType 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 class java.lang.Object