Home > @magiclane/maps-sdk > PTRouteInstruction

PTRouteInstruction class

Public transport route instruction class

Routes & Navigation

Signature:

export declare class PTRouteInstruction extends RouteInstructionBase 

Extends: RouteInstructionBase

Constructors

Constructor

Modifiers

Description

(constructor)(id, mapId)

Constructs a new instance of the PTRouteInstruction class

Properties

Property

Modifiers

Type

Description

arrivalTime

readonly

Date | null

Get public transit route instruction arrival time in UTC

**Returns**

* Arrival time in UTC if available, null otherwise

**Throws**

* An exception if it fails.

departureTime

readonly

Date | null

Get public transit route instruction departure time in UTC

**Returns**

* Departure time in UTC if available, null otherwise

**Throws**

* An exception if it fails.

hasWheelchairSupport

readonly

boolean

Get if public transit route instruction has wheelchair support

**Returns**

* True if has wheelchair support, false otherwise

**Throws**

* An exception if it fails.

name

readonly

string

Get public transit route instruction name

**Returns**

* Instruction name

**Throws**

* An exception if it fails.

platformCode

readonly

string

Get platform code

**Returns**

* Platform code

**Throws**

* An exception if it fails.