Home > @magiclane/maps-sdk > PTStop

PTStop class

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.

Maps & 3D Scene

Signature:

export declare class PTStop 

Constructors

Constructor

Modifiers

Description

(constructor)({ stopId, stopName, isStation, routes, }, input)

Create a PTStop.

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

Properties

Property

Modifiers

Type

Description

isStation?

readonly

boolean

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

routes

readonly

PTRouteInfo[]

Routes serving the stop.

stopId

readonly

number

Numeric stop identifier.

stopName

readonly

string

Stop display name.