Share via


Direction Class

Direction Class

Contains the representation of a single line in a route itinerary returned from a CalculateRoute or CalculateSimpleRoute method of the RouteServiceSoap class. This representation includes non-driving steps, such as end-of-day markers and border crossings. It does not include summary lines.


Public Class Direction
    Member of [Namespace]


[C#]

public class Direction : System.Object
    Member of [Namespace]

Public Properties

Name Description
public propertyAction

The action (DirectionAction enumeration) for the specified direction.

public propertyBearingIntoTurn

The compass angle of the route traveling toward the LatLong property. For example, given an instruction in which you are traveling due east along a road, your BearingIntoTurn property value upon reaching the subsequent direction would be 270.0. Valid range is 0.0 through 360.0, indicating the angle of the bearing. Angle is clockwise from north (north is 0.0 or 360.0). Single.

public propertyBearingOutOfTurn

The compass angle of the route away from the LatLong property. For example, given an instruction in which you are traveling due east on a road, your BearingOutOfTurn property value as you start would be 90.0. Valid range is 0.0 through 360.0, indicating the angle of the bearing. Angle is clockwise from north (north is 0.0 or 360.0). Single.

public propertyDirectionType

The type (DirectionType enumeration) of the specified direction.

public propertyDistance

The distance of the specified direction, in distance units (DistanceUnit enumeration) as specified in the UserInfoRouteHeader.DefaultDistanceUnit property. Double.

public propertyDuration

The duration of the specified direction in seconds. Long.

public propertyFormattedInstruction

The text of the specified direction with HTML formatting. String.

public propertyID

The index of the specified direction into the array of directions contained in a route. One-based. Integer.

public propertyInstruction

The text of the specified direction. String.

public propertyLatLong

The latitude and longitude coordinates (LatLong object) of the starting point of the specified direction.

public propertyTowards

The toward or signpost text for the specified direction. String.

public propertyView

The map views (MapViewRepresentations object) for the specified direction. Includes a view defined by bounding rectangle and a view defined by center point, height, and width.

Remarks

  • A route itinerary is comprised of an array of segments (RouteItinerary.Segments property), which are the portions of a route from one waypoint to the next. Each route segment contains an array of directions (Segment.Directions property). The ID property for a direction indicates its order within the entire route itinerary.

See Also

  RouteServiceSoap.CalculateRoute Method   |   RouteServiceSoap.CalculateSimpleRoute Method   |   DirectionAction Enumeration   |   DirectionType Enumeration   |   DistanceUnit Enumeration   |   UserInfoRouteHeader.DefaultDistanceUnit Property   |   LatLong Class   |   MapViewRepresentations Class   |   RouteItinerary.Segments Property   |   Segment.Directions Property