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 Esri::ArcGISRuntime::FeatureCollection &featureCollection)|
Member Function Documentation
Esri::ArcGISRuntime::TaskWatcher RouteTask::createParameters(const Esri::ArcGISRuntime::FeatureCollection &featureCollection)
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
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
This function was introduced in Esri::ArcGISRuntime 100.1.