ArcGIS Developers

RouteTaskInfo Class

class Esri::ArcGISRuntime::RouteTaskInfo

Information about a RouteTask. More...

Header: #include <RouteTaskInfo>
Since: Esri::ArcGISRuntime 100.0

This class was introduced in Esri::ArcGISRuntime 100.0.

Public Functions

RouteTaskInfo(Esri::ArcGISRuntime::RouteTaskInfo &&other)
RouteTaskInfo(const Esri::ArcGISRuntime::RouteTaskInfo &other)
Esri::ArcGISRuntime::RouteTaskInfo &operator=(Esri::ArcGISRuntime::RouteTaskInfo &&other)
Esri::ArcGISRuntime::RouteTaskInfo &operator=(const Esri::ArcGISRuntime::RouteTaskInfo &other)
QStringList accumulateAttributeNames() const
QMap<QString, Esri::ArcGISRuntime::CostAttribute> costAttributes() const
QString defaultTravelModeName() const
Esri::ArcGISRuntime::UnitSystem directionsDistanceUnits() const
QString directionsLanguage() const
Esri::ArcGISRuntime::DirectionsStyle directionsStyle() const
Esri::ArcGISRuntime::NetworkDirectionsSupport directionsSupport() const
bool isEmpty() const
bool isFindBestSequence() const
bool isPreserveFirstStop() const
bool isPreserveLastStop() const
bool isSupportsRerouting() const
double maxLocatingDistance() const
QString networkName() const
Esri::ArcGISRuntime::SpatialReference outputSpatialReference() const
QMap<QString, Esri::ArcGISRuntime::RestrictionAttribute> restrictionAttributes() const
Esri::ArcGISRuntime::RouteShapeType routeShapeType() const
QDateTime startTime() const
QStringList supportedLanguages() const
QStringList supportedRestrictionUsageParameterValues() const
QList<Esri::ArcGISRuntime::TravelMode> travelModes() const

Detailed Description

RouteTaskInfo contains the network dataset defaults from the RouteTask once it is loaded. Use this class to obtain information about RouteTask defaults before setting RouteParameters.

Member Function Documentation

RouteTaskInfo::RouteTaskInfo(Esri::ArcGISRuntime::RouteTaskInfo &&other)

Move constructor from other RouteTaskInfo.

RouteTaskInfo::RouteTaskInfo(const Esri::ArcGISRuntime::RouteTaskInfo &other)

Copy constructor from other RouteTaskInfo.


Default constructor.

Warning: This is for convenience only and will construct an empty object.

Esri::ArcGISRuntime::RouteTaskInfo &RouteTaskInfo::operator=(Esri::ArcGISRuntime::RouteTaskInfo &&other)

Move operator from other RouteTaskInfo.

Esri::ArcGISRuntime::RouteTaskInfo &RouteTaskInfo::operator=(const Esri::ArcGISRuntime::RouteTaskInfo &other)

Assignment operator from other RouteTaskInfo.



QStringList RouteTaskInfo::accumulateAttributeNames() const

Returns names of all the accumulated attributes.

QMap<QString, Esri::ArcGISRuntime::CostAttribute> RouteTaskInfo::costAttributes() const

Returns the cost attributes as a key-value pair.

The key is the name as a QString, and the value is the CostAttribute.

QString RouteTaskInfo::defaultTravelModeName() const

Returns the name of the default travel mode.

If the route task is initialized with a URL or local network that has no travel modes, then the default travel mode name is an empty string.

Esri::ArcGISRuntime::UnitSystem RouteTaskInfo::directionsDistanceUnits() const

Returns the units in which the length information will be reported in the route directions.

QString RouteTaskInfo::directionsLanguage() const

Returns the language of the resulting route directions.

Esri::ArcGISRuntime::DirectionsStyle RouteTaskInfo::directionsStyle() const

Returns the style of the resulting route directions.

Esri::ArcGISRuntime::NetworkDirectionsSupport RouteTaskInfo::directionsSupport() const

Returns whether the underlying network dataset supports the returning of directions.

Note: For services prior to ArcGIS 10.8, this value will be NetworkDirectionsSupport::Unknown.

This function was introduced in Esri::ArcGISRuntime 100.7.

bool RouteTaskInfo::isEmpty() const

Returns true if this RouteTaskInfo is empty.

bool RouteTaskInfo::isFindBestSequence() const

Returns whether the analysis should reorder stops to find the optimized route.

The default is false.

bool RouteTaskInfo::isPreserveFirstStop() const

Returns whether isPreserveFirstStop is true.

bool RouteTaskInfo::isPreserveLastStop() const

Returns whether isPreserveLastStop is true.

bool RouteTaskInfo::isSupportsRerouting() const

Returns the value of service property "Supports Rerouting".

If the "Supports Rerouting" property doesn't exist on service, the value will be false. For local data, the value will be true.

This function was introduced in Esri::ArcGISRuntime 100.6.

double RouteTaskInfo::maxLocatingDistance() const

Returns the maximum locating distance

Maximum locating distance is the furthest distance (in meters) that Network Analyst searches when locating or relocating a point onto the network. The search looks for suitable edges or junctions and snaps the point to the nearest one. If a suitable location isn't found within the maximum locating distance, the object is marked as unlocated.

This function was introduced in Esri::ArcGISRuntime 100.6.

QString RouteTaskInfo::networkName() const

Returns the network name.

Esri::ArcGISRuntime::SpatialReference RouteTaskInfo::outputSpatialReference() const

Returns the output spatial reference.

QMap<QString, Esri::ArcGISRuntime::RestrictionAttribute> RouteTaskInfo::restrictionAttributes() const

Returns the restriction attributes as a key-value pair.

The key is the name as a QString, and the value is the RestrictionAttribute.

Esri::ArcGISRuntime::RouteShapeType RouteTaskInfo::routeShapeType() const

Returns the output shape type for a route.

QDateTime RouteTaskInfo::startTime() const

Returns the start time of the route in UTC time.

QStringList RouteTaskInfo::supportedLanguages() const

Returns a list of supported languages for the route directions.

QStringList RouteTaskInfo::supportedRestrictionUsageParameterValues() const

Returns a list of supported restriction usage parameter values.

Restrictions can be identified for particular elements such that, during an analysis, traversing restricted elements is prohibited entirely, avoided, or even preferred. The values in this list which are assigned to the restriction usage parameter determines whether the restriction attribute prohibits, avoids, or prefers the network elements it is associated with. Furthermore, the degree to which network elements are avoided or preferred can be defined by choosing High, Medium, or Low.

QList<Esri::ArcGISRuntime::TravelMode> RouteTaskInfo::travelModes() const

Returns a list of travel modes set in the RouteParameters.

Feedback on this topic?