Skip to main content

addStop

The stops with stop added at the end. Returns the same list when it is already at MAX_DIRECTION_STOPS.

This is a function exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import { addStop } from "@mapcairn/core";

function addStop(stops: readonly DirectionStop[], stop: DirectionStop): readonly DirectionStop[];

Parameters​

  • stops (readonly DirectionStop[])
  • stop (DirectionStop)

Returns​

readonly DirectionStop[]

See also​

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