# RouteLeg

One stretch of a route, between two consecutive stops.

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

## Signature

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

## Properties

### geometry

```ts
readonly geometry: RouteLineGeometry;
```

The line the leg follows.

### properties

```ts
readonly properties: {
        readonly distance: number;
        readonly duration: number;
    };
```

The leg's length and travel time.

### type

```ts
readonly type: "Feature";
```

Always `Feature`, as GeoJSON writes it.

## See also

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

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