Home > @magiclane/maps-sdk > PTStopTime > (constructor)
PTStopTime.(constructor)
Create a PTStopTime.
API users do not typically create instances of this class directly.
Signature:
constructor(input: {
stopName: string;
coordinates: Coordinates;
hasRealtime: boolean;
delay: number;
departureTime?: Date;
stopDetails: number;
isBefore: boolean;
});Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
{ stopName, coordinates, hasRealtime, delay, departureTime, stopDetails, isBefore, } |
(not declared) | |
|
input |
{ stopName: string; coordinates: Coordinates; hasRealtime: boolean; delay: number; departureTime?: Date; stopDetails: number; isBefore: boolean; } |
input properties:
- stopName: string
- coordinates: Coordinates
- hasRealtime: boolean
- delay: number
- Optional departureTime?: Date
- stopDetails: number
- isBefore: boolean