Home > @magiclane/maps-sdk > PTStopInfo
PTStopInfo class
Aggregated public transport data for a selected overlay item.
Instances are produced by OverlayItem.getPTStopInfo() and contain the agencies, stops and trips associated with the selected public transport overlay item. Use the filtering helpers to query trips by short name, type or agency.
Signature:
export declare class PTStopInfo Example
const ptStopInfo = await overlayItem.getPTStopInfo();Maps & 3D Scene
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
|
PTAgency[] |
Agencies serving the selected PT overlay item. | |
|
|
PTStop[] |
Stops associated with the selected PT overlay item. | |
|
|
PTTrip[] |
Trips associated with the selected PT overlay item. Contains PTTrip objects providing schedule, realtime and accessibility information. |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
Filter trips by agency. | ||
|
Filter trips by route short name. | ||
|
Filter trips by PTRouteType. |