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

    Class PTStopInfo

    This class represents public transport stop information.

    It contains lists of agencies, stops, and trips. It provides methods to filter trips by route short name, route type, and agency.

    Index

    Constructors

    Accessors

    • get agencies(): PTAgency[]

      The list of public transport agencies for the stop.

      Returns PTAgency[]

    • get stops(): PTStop[]

      The list of public transport stops for the stop.

      Returns PTStop[]

    • get trips(): PTTrip[]

      The list of public transport trips for the stop. This is a list of PTTrip objects. It contains all trips associated with the stop.

      Returns PTTrip[]

    Methods

    • Filters the trips by agency. Returns a list of trips that match the specified agency.

      Parameter:

      • agency: The agency to filter by.

      Returns: A list of PTTrip objects that match the specified agency.

      Note: The agency must be one of the agencies in the list of agencies. If the agency is not found, an empty list is returned.

      Parameters

      Returns PTTrip[]

    • Filters the trips by route short name. Returns a list of trips that match the specified route short name.

      Parameter:

      • routeShortName: The short name of the route to filter by.

      Returns: A list of PTTrip objects that match the specified route short name.

      Parameters

      • routeShortName: string

      Returns PTTrip[]

    • Filters the trips by route type. Returns a list of trips that match the specified route type.

      Parameter:

      • routeType: The type of the route to filter by.

      Returns: A list of PTTrip objects that match the specified route type.

      Parameters

      Returns PTTrip[]

    • Factory constructor

      Parameters

      • paramList: any[]

      Returns PTStopInfo