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 - 100.15 |
.NET 6.0 | 100.15 |
.NET 6.0 Windows | 100.15 |
.NET Framework | 100.1 - 100.15 |
.NET 5 | 100.11 |
.NET Core 3.1 | 100.7 - 100.8 |
Xamarin.Android | 100.1 - 100.15 |
Xamarin.iOS | 100.1 - 100.15 |
UWP | 100.1 - 100.15 |
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 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.3 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.3 - 100.15 |
Xamarin.iOS | 100.3 - 100.15 |
UWP | 100.3 - 100.15 |