Share via


MajorRoutesResponse.Routes Property

 

A RouteResult Class array containing the calculated routes from all nearby major roads to the requested destination. Get this property from the service response.

Syntax

public RouteResult[] Routes { set; get; }
Public Property Routes As RouteResult()

Remarks

If you would like calculated routes returned in the MajorRoutesResponse.Routes Property, set the MajorRoutesOptions.ReturnRoutes Property to true when making the service request. Note that the service must perform one route calculation for every route returned in the Routes property.

If no major roads are found near the specified MajorRoutesRequest.Destination Property, then the MajorRoutesResponse.StartingPoints Property is returned empty and no routes are calculated.