Show / Hide Table of Contents

Method CreateParametersAsync

CreateParametersAsync(FeatureCollection)

Imports route parameters from feature collection and then adjusts imported parameters to current Route task.

Declaration
public Task<RouteParameters> CreateParametersAsync(FeatureCollection collection)
Parameters
Type Name Description
FeatureCollection collection

The feature collection object that contains stops, route info, and barriers tables. Stops table is required.

Returns
Type Description
Task<RouteParameters>

A RouteParameters object created with the information provided by the feature collection.

Remarks

Travel mode would be null if it could not be created from the route layer settings for the route task's network. In case if travel mode is null then client can override it by another travel mode (for example obtained from RouteTaskInfo ). Accumulate attributes from Route Info table going to be applied only if they exist in transportation network restriction and cost attributes.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.15 - 300.0
.NET Windows100.15 - 300.0
.NET Android200.0 - 300.0
.NET iOS200.0 - 300.0
.NET Framework100.1 - 200.8
Xamarin.Android100.1 - 100.15
Xamarin.iOS100.1 - 100.15
UWP100.1 - 200.8

CreateParametersAsync(PortalItem)

Imports route parameters from portal item and then adjusts imported parameters to current Route task.

Declaration
public Task<RouteParameters> CreateParametersAsync(PortalItem portalItem)
Parameters
Type Name Description
PortalItem portalItem

The portal item object with feature collection that contains stops, route info, and barriers tables. Stops table is required.

Returns
Type Description
Task<RouteParameters>

A RouteParameters object created with the information provided by the portal item.

Remarks

Travel mode would be null if it could not be created from the route layer settings for the route task's network. In case if travel mode is null then client can override it by another travel mode (for example obtained from RouteTaskInfo ). Accumulate attributes from Route Info table going to be applied only if they exist in transportation network restriction and cost attributes.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 300.0
.NET Windows100.13 - 300.0
.NET Android200.0 - 300.0
.NET iOS200.0 - 300.0
.NET Framework100.3 - 200.8
Xamarin.Android100.3 - 100.15
Xamarin.iOS100.3 - 100.15
UWP100.3 - 200.8
In this article
Provide feedback
Back to top Copyright © 2025 Esri.