Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ForecastRequest

Hierarchy

Index

Properties

Properties

latitude

latitude: NumberString

The latitude of a location (in decimal degrees). Positive is north, negative is south.

longitude

longitude: NumberString

The longitude of a location (in decimal degrees). Positive is east, negative is west.

Optional time

Specific date to get weather for.

Can be any of the following:

  • Date object.
  • A valid formatted date-string.
  • UNIX timestamp.

Either be a UNIX timestamp or a string formatted as follows:

// UNIX timestamp
{ time: 1558575452 }

// Date string
// [YYYY]-[MM]-[DD]T[HH]:[MM]:[SS][timezone].
{ time: "2019-01-01T00:00:00+0400" }

Timezone should either be omitted (to refer to local time for the location being requested), Z (referring to GMT time), or +[HH][MM] or -[HH][MM] for an offset from GMT in hours and minutes.

  • Note: The timezone is only used for determining the time of the request; the response will always be relative to the local time zone.

Generated using TypeDoc