Skip to main content

DirectionStop

One place a route passes through.

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

Signature​

import type { DirectionStop } from "@mapcairn/core";

interface DirectionStop

Properties​

id​

readonly id: string;

Stable for the life of the stop, so a list keeps its rows when stops move.

label​

readonly label?: string;

A name for the place, such as a search result's label. Without it the coordinates are shown.

position​

readonly position: LatLng;

Where the stop is.

See also​

Source: packages/core/src/directions/directions.ts:17