Click or drag to resize

RouteShapeType Enumeration

Indicates the route shape type. This parameter is applicable only if ReturnRoutes is set to true.

Namespace:  Esri.ArcGISRuntime.Tasks.NetworkAnalysis
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.7.0.0
Syntax
C#
public enum RouteShapeType
Members
  Member nameValueDescription
None0 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.
StraightLine1Return a straight line between the stops.
TrueShapeWithMeasures2 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.
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.

See Also