Enum RouteShapeType
Indicates the route shape type. This parameter is applicable only if ReturnRoutes is set to true.
Namespace: Esri.ArcGISRuntime.Tasks.NetworkAnalysis
Assembly: Esri.ArcGISRuntime.dll
Syntax
public enum RouteShapeType
Remarks
No matter which value you choose for the RouteShapeType parameter, the best route is always determined by minimizing the travel time or the travel distance, never using the Euclidean distance (or as the crow flies distance) between the stops. This means that only the returned route shapes are different, not the underlying streets that are searched when finding the route.
Fields
Name | Description |
---|---|
None | Do not return any shapes for the routes. This value can be useful in cases where you are only interested in determining the total travel time or travel distance of the route. For example, if your application has already calculated the route and after some time your application needs to only calculate the expected time of arrival (ETA) to the destination, you can set the ReturnRoutes parameter to true and the RouteShapeType parameter to None. |
StraightLine | Return a straight line between the stops. |
TrueShapeWithMeasures | Return the exact shape of the resulting route that is based on the underlying streets and include route measurements that keep track of the cumulative travel time or travel distance along the route relative to the first stop. When this value is chosen for the RouteShapeType parameter, each point that makes up the route shape will include an M value along with X and Y values. The M value, also known as a measure value, indicates the accumulated travel time or travel distance at that point along the route. The M values can be used to determine how far you have traveled from the start of the route or the remaining distance or time left to reach the destination. The M values store travel time if the AccumulateAttributeNames is set to TravelTime and store the travel distance if the AccumulateAttributeNames is set to Kilometers or Miles. |
Applies to
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.0 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.0 - 200.5 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.5 |