Waypoint Class

In order to calculate a route between locations you need to first add all the locations as waypoints to the DirectionsManager. When creating an instance of the Waypoint class you must pass in an object containing WaypointOptions.

Constructor

Waypoint(options: WaypointOptions)

Methods

Name Type Description
dispose() Releases any resources associated with the waypoint.
getAddress() string Returns the address associated with the waypoint.
getLocation() Location Returns the location of the waypoint.
isViapoint() boolean Returns a boolean value indicating whether the waypoint is a via point. A via point is a location that your route is guaranteed to pass through. There can be multiple via points between two stop points.
setOptions(options: WaypointOptions Sets options for the waypoint. For these options to take effect, you must recalculate the route.