Home > @magiclane/maps-sdk > PTRouteInfo > (constructor)
PTRouteInfo.(constructor)
Create a PTRouteInfo.
API users do not typically create instances of this class directly.
Signature:
constructor(input: {
routeId: number;
routeShortName?: string;
routeLongName?: string;
routeType: PTRouteType;
routeColor?: string;
routeTextColor?: string;
heading?: string;
liveCrowding?: PTCrowdingInfo;
});Parameters
Parameter | Type | Description |
|---|---|---|
{ routeId, routeShortName, routeLongName, routeType, routeColor, routeTextColor, heading, liveCrowding, } | (not declared) | |
input | { routeId: number; routeShortName?: string; routeLongName?: string; routeType: PTRouteType; routeColor?: string; routeTextColor?: string; heading?: string; liveCrowding?: PTCrowdingInfo; } |
input properties:
- routeId: number
- Optional routeShortName?: string
- Optional routeLongName?: string
- routeType: PTRouteType
- Optional routeColor?: string
- Optional routeTextColor?: string
- Optional heading?: string
- Optional liveCrowding?: PTCrowdingInfo