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

    Class PTStop

    Public transport stop metadata.

    Represents a stop (or platform/entrance) with an id, display name and the set of routes that serve it.

    Instances are produced as part of PTStopInfo.stops.

    Index

    Constructors

    • Create a PTStop.

      API users do not typically create instances of this class directly.

      Parameters

      • params: { isStation?: boolean; routes: PTRouteInfo[]; stopId: number; stopName: string }

        Stop parameters

      Returns PTStop

    Properties

    isStation?: boolean

    True when the stop is a station; otherwise null/false.

    routes: PTRouteInfo[]

    Routes serving the stop.

    stopId: number

    Numeric stop identifier.

    stopName: string

    Stop display name.

    Methods