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
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 |
| .NET | 100.15 - 300.0 |
| .NET Windows | 100.15 - 300.0 |
| .NET Android | 200.0 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .NET Framework | 100.1 - 200.8 |
| Xamarin.Android | 100.1 - 100.15 |
| Xamarin.iOS | 100.1 - 100.15 |
| UWP | 100.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
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 |
| .NET | 100.13 - 300.0 |
| .NET Windows | 100.13 - 300.0 |
| .NET Android | 200.0 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .NET Framework | 100.3 - 200.8 |
| Xamarin.Android | 100.3 - 100.15 |
| Xamarin.iOS | 100.3 - 100.15 |
| UWP | 100.3 - 200.8 |