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;
});Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
{ routeId, routeShortName, routeLongName, routeType, routeColor, routeTextColor, heading, } |
(not declared) | |
|
input |
{ routeId: number; routeShortName?: string; routeLongName?: string; routeType: PTRouteType; routeColor?: string; routeTextColor?: string; heading?: string; } |
input properties:
- routeId: number
- Optional routeShortName?: string
- Optional routeLongName?: string
- routeType: PTRouteType
- Optional routeColor?: string
- Optional routeTextColor?: string
- Optional heading?: string