ToArray

Returns an array containing all of the waypoints in the collection.

 

JavaScript

 

ToArray()

 

C#

 

dynamic ToArray()

 

C++

 

HRESULT ToArray(

       VARIANT* Waypoints)

Return Value

Waypoints

A Safe Array that contains triplets of doubles. Each triplet is composed of an x-coordinate, a height, and a y-coordinate.

Note:    As of IE11, VBScript which includes the VBArray object that returns a SafeArray, is considered deprecated. In order to continue using this TerraExplorer API using JavaScript, add the following meta tag in the head section, to enable you to choose which version of Internet Explorer the HTML page should be rendered in (in this case IE10):
<meta http-equiv="X-UA-Compatible" content="IE=10" />

Note: In JavaScript, use the VBArray object. E.g.,

var waypoints = route.Waypoints.ToArray()

var arr = new VBArray(waypoints).toArray();

 

Exceptions

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