Home > @magiclane/maps-sdk > PTStopInfo > tripsByAgency

PTStopInfo.tripsByAgency() method

Filter trips by agency.

Signature:

tripsByAgency(agency: PTAgency): PTTrip[];

Parameters

Parameter

Type

Description

agency

PTAgency

Agency to filter by

Returns:

PTTrip[]

Trips operated by the provided agency. Returns an empty list if the agency is not present.