# 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

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

## Properties

### features

```ts
readonly features: readonly ReachableAreaFeature[];
```

The reachable area as map features, ready to draw.

### kind

```ts
readonly kind: "area";
```

Tells an area from a [`RouteOutcome`](https://docs.mapcairn.com/api/map/RouteOutcome.md).

### minutes

```ts
readonly minutes: number;
```

The travel time the area covers, in minutes.

### mode

```ts
readonly mode: TravelMode;
```

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

### origin

```ts
readonly origin: LatLng;
```

Where the area is reachable from: the first stop.

### size

```ts
readonly size: number;
```

The ground area, in square metres.

## See also

- [`ReachableAreaFeature`](https://docs.mapcairn.com/api/core/ReachableAreaFeature.md)
- [`TravelMode`](https://docs.mapcairn.com/api/core/TravelMode.md)
- [`LatLng`](https://docs.mapcairn.com/api/core/LatLng.md)

Source: [packages/map/src/tools/Directions/useDirections.ts:56](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/tools/Directions/useDirections.ts#L56)
