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

RouteMatrixEntry

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

The result for one SnappedDeparturePosition SnappedDestinationPosition pair.

interface RouteMatrixEntry {
Distance?: number | null;
DurationSeconds?: number | null;
Error?: RouteMatrixEntryError | null;
}

§Properties

§
Distance?: number | null
[src]

The total distance of travel for the route.

§
DurationSeconds?: number | null
[src]

The expected duration of travel for the route.

§

An error corresponding to the calculation of a route between the DeparturePosition and DestinationPosition.