Waypoint Class

Bing
 

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.

Waypoint(options: WaypointOptions)

NameTypeDescription
dispose()Releases any resources associated with the waypoint.
getAddress()stringReturns the address associated with the waypoint.
getLocation()LocationReturns the location of the waypoint.
isViapoint()booleanReturns 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: WaypointOptionsSets options for the waypoint. For these options to take effect, you must recalculate the route.
Show: