Home > @magiclane/maps-sdk > PTRouteInfo
PTRouteInfo class
Public-facing route information for a stop.
Contains rider-visible route metadata such as short/long names, route type and color hints. Use this when presenting routes associated with a stop in UI or lists.
Instances are provided as part of PTStop.routes or PTTrip.route.
Maps & 3D Scene
Signature:
export declare class PTRouteInfo Constructors
|
Constructor |
Modifiers |
Description |
|---|---|---|
|
Create a PTRouteInfo. API users do not typically create instances of this class directly. |
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
|
string |
(Optional) Optional heading or destination string. | |
|
|
string |
(Optional) Optional color associated with the route (hex string). | |
|
|
number |
Internal route identifier. | |
|
|
string |
(Optional) Descriptive route name (may be null). | |
|
|
string |
(Optional) Short route identifier (may be null). | |
|
|
string |
(Optional) Optional text color suitable for use on top of routeColor (hex string). | |
|
|
Route type. |