Home > @magiclane/maps-sdk > PTAlertActivePeriod

PTAlertActivePeriod class

Active period of a service alert.

A missing start means active since forever; a missing end means open-ended.

Maps & 3D Scene

Signature:

export declare class PTAlertActivePeriod 

Constructors

Constructor

Modifiers

Description

(constructor)({ start, end }, input)

Create a PTAlertActivePeriod.

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

Properties

Property

Modifiers

Type

Description

end?

readonly

Date

(Optional) Period end (UTC). Undefined = open-ended.

**WARNING:** Returned as a Date with UTC flag but representing local time; use TimezoneService to convert if needed.

start?

readonly

Date

(Optional) Period start (UTC). Undefined = active since forever.

**WARNING:** Returned as a Date with UTC flag but representing local time; use TimezoneService to convert if needed.