Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

CalculateRouteMatrixResponse

import type { CalculateRouteMatrixResponse } from "https://aws-api.deno.dev/v0.3/services/location.ts?docs=full";

Returns the result of the route matrix calculation.

interface CalculateRouteMatrixResponse {
RouteMatrix: RouteMatrixEntry[][];
SnappedDeparturePositions?: number[][] | null;
SnappedDestinationPositions?: number[][] | null;
}

§Properties

§
RouteMatrix: RouteMatrixEntry[][]
[src]

The calculated route matrix containing the results for all pairs of DeparturePositions to DestinationPositions. Each row corresponds to one entry in DeparturePositions. Each entry in the row corresponds to the route from that entry in DeparturePositions to an entry in DestinationPositions.

§
SnappedDeparturePositions?: number[][] | null
[src]

For routes calculated using an Esri route calculator resource, departure positions are snapped to the closest road. For Esri route calculator resources, this returns the list of departure/origin positions used for calculation of the RouteMatrix.

§
SnappedDestinationPositions?: number[][] | null
[src]

The list of destination positions for the route matrix used for calculation of the RouteMatrix.

§

Contains information about the route matrix, DataSource, DistanceUnit, RouteCount and ErrorCount.