Home > @magiclane/maps-sdk > PTRoute > getBuyTicketInformation

PTRoute.getBuyTicketInformation() method

Get buy ticket data obj specified by index.

**Parameters**

* **IN** *index* The index of the buy ticket data object.

**Returns**

* Valid PTBuyTicketInformation object for corresponding index. * Empty PTBuyTicketInformation object if id index is out of bounds.

**Throws**

* An exception if it fails.

Signature:

getBuyTicketInformation(index: number): PTBuyTicketInformation | null;

Parameters

Parameter

Type

Description

index

number

Returns:

PTBuyTicketInformation | null