Home > All Other Interfaces > IRouteWaypoints > InsertWaypoint

InsertWaypoint

Inserts a waypoint at a specified point in the route.

 

JavaScript

 

InsertWaypoint(

      IndexInsertAfter,

      pWaypoint)

 

C#

 

void InsertWaypoint(

      int IndexInsertAfter,

      IRouteWaypoint6 pWaypoint)

 

C++

 

HRESULT InsertWaypoint(

      long IndexInsertAfter,

      IRouteWaypoint6* pWaypoint)

Parameters

IndexInsertAfter

The zero-based index of the waypoint after which the new waypoint should be inserted. 

pWaypoint

An IRouteWaypoint6 representing the inserted waypoint.

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.