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[];
    });

Parameters

Parameter

Type

Description

{ stopId, stopName, isStation, routes, }

(not declared)

input

{ stopId: number; stopName: string; isStation?: boolean; routes: PTRouteInfo[]; }

input properties:

  • stopId: number
  • stopName: string
  • Optional isStation?: boolean
  • routes: PTRouteInfo[]