Meteonorm API

horizon

Endpoint:https://api.meteonorm.com/v1

/horizon

GET
https://api.meteonorm.com/v1
/horizon

Retrieves the 360° horizon for a location

/horizonquery Parameters

  • latnumber · double · min: -90 · max: 90 · required

    Latitude in degrees (North is positive).

    Example: 47.3768
  • lonnumber · double · min: -180 · max: 180 · required

    Longitude in degrees (East is positive).

    Example: 8.5417

/horizonResponses

    • azimuthinteger[] · minItems: 360 · maxItems: 360 · required

      Azimuth angles (in degrees) corresponding to horizon elevation angles in "HorizonElevation".

      0° = north, 90° = east, 180° = south, 270° = west.

    • elevationinteger[] · minItems: 360 · maxItems: 360 · required

      360 integer values representing elevation angles (0° to 90°) of the horizon. Array indices correspond to azimuths, e.g., Index 0 corresponds to azimuth 0°. Each value indicates the elevation angle at the corresponding azimuth. The given example corresponds to a "20° mountain" in the north and a flat horizon in all other directions.

      Example: [20,20,20,19,18,17,...,0,0,0,0,0,0,...,18,19,20,20,20,20]

/altitude

GET
https://api.meteonorm.com/v1
/altitude

Retrieves the altitude in meters for a location.

/altitudequery Parameters

  • latnumber · double · min: -90 · max: 90 · required

    Latitude in degrees (North is positive).

    Example: 47.3768
  • lonnumber · double · min: -180 · max: 180 · required

    Longitude in degrees (East is positive).

    Example: 8.5417

/altitudeResponses

    • altitudenumber · double · min: -1000 · max: 10000 · required

      Altitude in meters above sea level.