RouteOutcome
A route that is on the map.
This is an interface exported by @mapcairn/map, checked against version 0.2.0.
Signature
import type { RouteOutcome } from "@mapcairn/map";
interface RouteOutcome
Properties
distance
readonly distance: number;
The whole route's length, in metres.
duration
readonly duration: number;
The whole route's travel time, in seconds.
kind
readonly kind: "route";
Tells a route from an AreaOutcome.
legs
readonly legs: readonly RouteLeg[];
One line for each pair of consecutive stops.
mode
readonly mode: TravelMode;
How the route travels: walk, cycle or drive.
stops
readonly stops: readonly DirectionStop[];
The stops it was found for, in order.
See also
Source: packages/map/src/tools/Directions/useDirections.ts:40