A class that contains information describing
traveling on a portion of a route.
Property |
Type |
Description |
Azimuth |
double |
The azimuth is an angle, measured clockwise in decimal degrees, that represents the observers view direction relative to the North Pole. |
CompressedGeometry |
string |
A compressed line geometry representing the street corresponding to the direction element. |
ETA |
DateTime |
The estimated time of arrival at the direction element. |
Events |
Array of street direction event objects. | |
Length |
double |
The length of the direction element. |
ManeuverType |
The type of maneuver that the direction represents | |
Strings |
string[] |
The set of textual strings conveying directional information. |
StringTypes |
The type of each direction string in the property Strings. | |
Text |
string |
The text of the direction element. |
Time |
double |
The time to travel along the direction element. |
TurnAngle |
double |
The turn angle at the maneuver point of the item. |
Remarks
This object is significantly smaller than the NAStreetDirection object. In particular, there is less information stored about the direction, and the geometry representing the traversed streets is highly compressed. Due to their smaller size, these directions are better suited for passing across low bandwidth connections in server applications.
Examples of what the Text element might return include:
Start at Stop 1.
Go east on Quintara St toward 32nd Ave.
Turn right onto 28th St.
Take roundabout and proceed northeast on 28th St.
Finish at Stop 2, on the right.
The sample code references in the example below
will decompress a compressed geometry into an array of XY.
Examples