Home > @magiclane/maps-sdk > OverlayItem > getPTStopInfo

OverlayItem.getPTStopInfo() method

Retrieve public-transport stop details when available.

This helper calls getPreviewExtendedData and converts the result to a PTStopInfo when the item belongs to CommonOverlayId.PublicTransport.

Signature:

getPTStopInfo(): Promise<PTStopInfo | null>;

Returns:

Promise<PTStopInfo | null>

A PTStopInfo when available, otherwise null.