UNPKG

minotor

Version:

A lightweight client-side transit routing library.

22 lines (21 loc) 622 B
export type SourceStopId = string; export type StopId = number; export type Platform = string; export type Latitude = number; export type Longitude = number; export type LocationType = 'SIMPLE_STOP_OR_PLATFORM' | 'STATION' | 'ENTRANCE_EXIT' | 'GENERIC_NODE' | 'BOARDING_AREA'; export type Stop = { id: StopId; sourceStopId?: SourceStopId; name: string; lat?: Latitude; lon?: Longitude; children: StopId[]; parent?: StopId; locationType: LocationType; platform?: Platform; }; /** * Mapping source stopIds to internal stopIds; */ export type SourceStopsMap = Map<SourceStopId, StopId>;