Skip to main content

AreaOutcome

A travel-time area that is on the map.

This is an interface exported by @mapcairn/map, checked against version 0.2.0.

Signature​

import type { AreaOutcome } from "@mapcairn/map";

interface AreaOutcome

Properties​

features​

readonly features: readonly ReachableAreaFeature[];

The reachable area as map features, ready to draw.

kind​

readonly kind: "area";

Tells an area from a RouteOutcome.

minutes​

readonly minutes: number;

The travel time the area covers, in minutes.

mode​

readonly mode: TravelMode;

How the area was worked out: walk, cycle or drive.

origin​

readonly origin: LatLng;

Where the area is reachable from: the first stop.

size​

readonly size: number;

The ground area, in square metres.

See also​

Source: packages/map/src/tools/Directions/useDirections.ts:56