Home > @magiclane/maps-sdk > LocationForecast

LocationForecast class

Weather forecast for a specific geographic location.

Contains the forecast update time, coordinates, and a list of conditions representing weather data for the location.

Obtained via WeatherService methods.

Weather

Signature:

export declare class LocationForecast 

Constructors

Constructor

Modifiers

Description

(constructor)(updated, coord, forecast, timestamp)

Creates a LocationForecast instance.

Properties

Property

Modifiers

Type

Description

coord

Coordinates

forecast

Conditions[]

timestamp?

number | undefined

(Optional)

updated

Date

Methods

Method

Modifiers

Description

fromJson(json)

static

Deserializes a JSON-compatible map to create an instance.

toJson()

Serializes this instance to a JSON-compatible map.