Class RouteTask
Class for route tasks (online and local).
Implements
Namespace: Esri.ArcGISRuntime.Tasks.NetworkAnalysis
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class RouteTask : IApiKeyResource
Properties
| Name | Description |
|---|---|
| ApiKey | Gets or sets the unique key generated from ArcGIS Developers website. |
| RouteTaskInfo | Gets route task info. RouteTask must be loaded before accessing this property. |
| TransportationNetworkDataset | Gets the transportation network dataset associated with the route task. |
| Uri | Gets the Uri of the route task. |
Methods
| Name | Description |
|---|---|
| CreateAsync(TransportationNetworkDataset) | Creates a route task from a transportation network dataset. |
| CreateAsync(String, String) | Creates a route task from a local geodatabase. |
| CreateAsync(Uri) | Creates a route task from an online URI. |
| CreateAsync(Uri, String) | Creates a route task from an online URI. |
| CreateDefaultParametersAsync() | Creates default parameters for the route task. |
| CreateParametersAsync(FeatureCollection) | Imports route parameters from feature collection and then adjusts imported parameters to current Route task. |
| CreateParametersAsync(PortalItem) | Imports route parameters from portal item and then adjusts imported parameters to current Route task. |
| CreateRouteResultAsync(FeatureCollection) | Imports a route result from a Route Layer feature collection. |
| CreateRouteResultAsync(PortalItem) | Imports route result from portal item. |
| SolveRouteAsync(RouteParameters) | Solves a route with the specified parameters. |
Applies to
| 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.0 - 100.15 |
| .NET 5 | 100.10 - 100.12 |
| .NET Core 3.1 | 100.7 - 100.12 |
| Xamarin.Android | 100.0 - 100.15 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 100.15 |