@magiclane/maps-sdk
    Preparing search index...

    Class PTRouteInfo

    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.

    Index

    Constructors

    • Parameters

      • params: {
            heading?: string;
            routeColor?: Color;
            routeId: number;
            routeLongName?: string;
            routeShortName?: string;
            routeTextColor?: Color;
            routeType: PTRouteType;
        }

      Returns PTRouteInfo

    Properties

    heading?: string

    An optional heading for the route. This can be null if not provided.

    routeColor?: Color

    The color of the route, represented as a Color object. This can be null if not provided.

    routeId: number

    The ID of the route.

    routeLongName?: string

    The long name of the route.

    routeShortName?: string

    The short name of the route.

    routeTextColor?: Color

    The text color of the route, represented as a Color object. This can be null if not provided.

    routeType: PTRouteType

    The type of the route, represented by the PTRouteType enum.

    Methods

    • Parameters

      • param: any[]

      Returns PTRouteInfo[]

    • Parameters

      • OptionalcolorString: string

      Returns Color | undefined