# RouteRequest

A request for a route through the stops, in order.

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

## Signature

```ts
import type { RouteRequest } from "@mapcairn/core";
 
interface RouteRequest
```

## Properties

### mode

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

How the traveller moves.

### signal

```ts
readonly signal?: AbortSignal;
```

Cancels the request. It then rejects with an `aborted` error.

### stops

```ts
readonly stops: readonly LatLng[];
```

At least two positions: where to start, any stops between, and where to end.

## See also

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

Source: [packages/core/src/ports/routing.ts:36](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/ports/routing.ts#L36)
