Class RouteTask
Class for route tasks (online and local).
Inheritance
Implements
Namespace: Esri.ArcGISRuntime.Tasks.NetworkAnalysis
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class RouteTask : IApiKeyResource
Properties
Name | Description |
---|---|
ApiKey | Gets or sets the API key that allows your app to access ArcGIS location services and private portal items. |
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 - 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.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |