Waypoint Class
Waypoint Class
Contains the start point, intermediate stops, or end point of a route. Includes the requested location, name, snap type (an attribute that changes the way a waypoint functions when a route is created), and calculated location.
Public Class Waypoint Inherits System.Object
[C#]
public class Waypoint : System.Object
Public Properties
Name | Description |
---|---|
CalculatedLocation | Represents the actual location (Location object) used for the specified waypoint when calculating the route. Ignored on input. |
Location | The requested location (Location object) of the waypoint. |
Name | The user-defined name associated with the waypoint, used in the Depart and Arrive instructions in the Direction.Instruction and Direction.FormattedInstruction properties. String character limit is 256. |
Snap | The snap type of the waypoint (SnapType enumeration). |
Remarks
On input, the Waypoint class is used with the SegmentSpecification.Waypoint property, which is passed in the RouteSpecification.Segments property to the RouteServiceSoap.CalculateRoute method.
On output, the Waypoint object is used in the Segment.Waypoint property, which is returned in the Route.Itinerary property from the RouteServiceSoap.CalculateRoute and RouteServiceSoap.CalculateSimpleRoute methods.
MapPoint Web Service allows up to 50 waypoints per route; that is, the start point, 48 intermediate stops, and end point.
See Also
Location Class | Direction Class | SnapType Enumeration | SegmentSpecification.Waypoint Property | RouteSpecification.Segments Property