Skip to content

CloudRoutingDistanceCostMatrixResult

Namespace: ThinkGeo.Core

A class that represents the result of CostMatrix.

public class CloudRoutingDistanceCostMatrixResult

Inheritance ObjectCloudRoutingDistanceCostMatrixResult

Properties

Origins

An array of waypoints, following the sequence of the supplied origin coordinates. Each waypoint is an origin coordinate snapped to the road network.

public Collection<CloudRoutingWaypoint> Origins { get; set; }

Property Value

Collection<CloudRoutingWaypoint>

Destinations

An array of waypoints, following the sequence of the supplied destination coordinates. Each waypoint is a destination coordinate snapped to the road network.

public Collection<CloudRoutingWaypoint> Destinations { get; set; }

Property Value

Collection<CloudRoutingWaypoint>

Distances

An array of arrays that represents the matrix in row-major order. For example, distances[i][j] represents the travel distance from the ith source to the jth target. All the values are expressed in the requested DistanceUnit. "-1" for N/A cases.

public Single[,] Distances { get; set; }

Property Value

Single[,]

Constructors

CloudRoutingDistanceCostMatrixResult()

public CloudRoutingDistanceCostMatrixResult()