The following members of class RouteTask are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
| ||createParameters(const FeatureCollection &featureCollection)|
Member Function Documentation
TaskWatcher RouteTask::createParameters(const FeatureCollection &featureCollection)
Creates the route parameters from a feature collection for this route task.
Imported route parameters from a feature collection will be adjusted to the current RouteTask.
- If travel mode obtained from featureCollection cannot be applied to current RouteTask, then it will be null.
- In cases where travel mode is null, the client can override it with another travel mode, such as one obtained from RouteTaskInfo::travelModes().
- Accumulate attributes from the route info table are applied only if they exist in RouteTaskInfo::restrictionAttributes() and RouteTaskInfo::costAttributes() for the current RouteTask.
featureCollection must contain at least a
Replaced with RouteTask::createParametersWithPortalItem()
This function was introduced in Esri::ArcGISRuntime 100.1.