Home > @magiclane/maps-sdk > PTStop > (constructor)
PTStop.(constructor)
Create a PTStop.
API users do not typically create instances of this class directly.
Signature:
constructor(input: {
stopId: number;
stopName: string;
isStation?: boolean;
routes: PTRouteInfo[];
alerts?: PTAlertInfo[];
});Parameters
Parameter | Type | Description |
|---|---|---|
{ stopId, stopName, isStation, routes, alerts, } | (not declared) | |
input | { stopId: number; stopName: string; isStation?: boolean; routes: PTRouteInfo[]; alerts?: PTAlertInfo[]; } |
input properties:
- stopId: number
- stopName: string
- Optional isStation?: boolean
- routes: PTRouteInfo[]
- Optional alerts?: PTAlertInfo[]