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 |
---|---|
System.Threading.Tasks.Task<RouteParameters> | The task object representing the asynchronous create default parameters operation. The value of the task result is a RouteParameters object. |
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
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.6 |
.NET | 100.15 - 200.6 |
.NET Windows | 100.15 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.1 - 200.6 |
Xamarin.Android | 100.1 - 100.15 |
Xamarin.iOS | 100.1 - 100.15 |
UWP | 100.1 - 200.6 |
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 |
---|---|
System.Threading.Tasks.Task<RouteParameters> | The task object representing the asynchronous create parameters operation. The value of the task result is a RouteParameters object. |
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
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.3 - 200.6 |
Xamarin.Android | 100.3 - 100.15 |
Xamarin.iOS | 100.3 - 100.15 |
UWP | 100.3 - 200.6 |