Optional ReadonlyheadingAn optional heading for the route. This can be null if not provided.
Optional ReadonlyrouteThe color of the route, represented as a Color object. This can be null if not provided.
ReadonlyrouteThe ID of the route.
Optional ReadonlyrouteThe long name of the route.
Optional ReadonlyrouteThe short name of the route.
Optional ReadonlyrouteThe text color of the route, represented as a Color object. This can be null if not provided.
ReadonlyrouteThe type of the route, represented by the PTRouteType enum.
Static_Static_Static_OptionalcolorString: string
This class represents a public transport route.
It contains the route's ID, short name, long name, type, color, text color, and an optional heading. The route type is represented by the PTRouteType enum.