Interface ForecastRequest

Required parameters for making a request to OpenWeatherMap's "one-call" api endpoint.

See API Request for more info.

Hierarchy

Properties

Properties

lat: string | number

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

lon: string | number

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

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 Date object.

Generated using TypeDoc