Class RouteTaskInfo


  • public final class RouteTaskInfo
    extends Object
    Represents metadata about the network analyst service or dataset used by RouteTask

    RouteTaskInfo info is an immutable object and initialized only once when task is loaded. Changing route parameters does not affect this.

    Since:
    100.0.0
    • Method Detail

      • getAccumulateAttributeNames

        public List<String> getAccumulateAttributeNames()
        Gets the list of network attributes that can be accumulated and returned as part of the route.
        Returns:
        an unmodifiable list of the accumulate attribute names
        Since:
        100.0.0
      • getCostAttributes

        public Map<String,​CostAttribute> getCostAttributes()
        Gets list of cost attributes that can be used as a travel mode impedance TravelMode.setImpedanceAttributeName(String) to optimize the route. The key in the Map represents the name of the cost attribute.
        Returns:
        an unmodifiable map of the cost attributes
        Since:
        100.0.0
      • isFindBestSequence

        public boolean isFindBestSequence()
        Gets whether this route task can find best sequence.
        Returns:
        whether the route task can find best sequence
        Since:
        100.0.0
      • getDefaultTravelModeName

        public String getDefaultTravelModeName()
        Gets the default travel mode that can be used to customize the route.
        Returns:
        the default travel mode name
        Since:
        100.0.0
      • getDirectionsDistanceUnits

        public UnitSystem getDirectionsDistanceUnits()
        Gets the unit system of measurement used when providing distances for turn-by-turn directions.
        Returns:
        the unit system of measurement
        Since:
        100.0.0
        See Also:
        UnitSystem
      • getDirectionsLanguage

        public String getDirectionsLanguage()
        Gets the language used when computing directions.
        Returns:
        the directions language
        Since:
        100.0.0
      • getDirectionsStyle

        public DirectionsStyle getDirectionsStyle()
        Gets the style used for providing directions.
        Returns:
        the directions style
        Since:
        100.0.0
      • getStartTime

        public Calendar getStartTime()
        Gets the time the route begins. If not specified, defaults to the time the task is executed.
        Returns:
        the start time. It can be null.
        Since:
        100.0.0
      • getNetworkName

        public String getNetworkName()
        Gets the name of the underlying transportation network dataset
        Returns:
        the network name
        Since:
        100.0.0
      • isPreserveFirstStop

        public boolean isPreserveFirstStop()
        Indicates if the route task will keep the first stop fixed in the sequence when isFindBestSequence() is enabled.
        Returns:
        whether the route task can preserve first stop
        Since:
        100.0.0
      • isPreserveLastStop

        public boolean isPreserveLastStop()
        Gets if the route task will keep the last stop fixed in the sequence when isFindBestSequence() is enabled.
        Returns:
        whether the route task can preserve last stop
        Since:
        100.0.0
      • getRestrictionAttributes

        public Map<String,​RestrictionAttribute> getRestrictionAttributes()
        Gets the list of supported restrictions for constraining the route. The key in the Map represents the name of the restriction attribute.
        Returns:
        an unmodifiable map of the restriction attributes
        Since:
        100.0.0
      • getSupportedLanguages

        public List<String> getSupportedLanguages()
        Gets the list of languages supported for generating turn-by-turn driving directions.
        Returns:
        an unmodifiable list of the supported languages
        Since:
        100.0.0
      • getSupportedRestrictionUsageParameterValues

        public List<String> getSupportedRestrictionUsageParameterValues()
        Gets the supported restriction usage parameter values.
        Returns:
        an unmodifiable list of the supported restriction usage parameter values
        Since:
        100.0.0
      • getTravelModes

        public List<TravelMode> getTravelModes()
        Gets the available travel modes that can be used to customize the route.
        Returns:
        an unmodifiable list of the travel modes
        Since:
        100.0.0