Historical weather

API allows you to get information about weather data in preset area and date period.

POST /api/cz/backend/forecast-history/
Form Parameters:
 
  • geometry – GeoJSON coordinates of Polygon that contains area coordinates in EPSG:4326
  • polygon_id – (optional) cropper_ref, the geometry representing AOI in GeoJSON format; if specified, takes priority over geometry
  • start_date – Period start date for selecting data. Format YYYY-MM-DD
  • end_date – Period end date for selecting data. Format YYYY-MM-DD
Query Parameters:
 
  • api_key – (required) user’s API key

Example. Search weather data

Now we will search weather data in period from 2019-01-19 till 2019-01-22.
Area used for this request is estimated field with 7 corners.

Example request:

http

POST /api/cz/backend/forecast-history/?api_key=XXX HTTP/1.1
Host: gate.eos.com
Content-Type: application/json

{
  "polygon_id": "0dgf09gmudf0gudgdf",
  "geometry": {
    "coordinates": [
      [
        [
              33.4918212890625,
              48.68552087440201
            ],
            [
              33.5577392578125,
              48.61112192003074
            ],
            [
              33.48907470703125,
              48.4838455701099
            ],
            [
              33.77471923828125,
              48.40732607972984
            ],
            [
              34.05487060546875,
              48.41097247934197
            ],
            [
              33.98895263671875,
              48.58750908593607
            ],
            [
              33.84063720703125,
              48.73445537176822
            ],
            [
              33.4918212890625,
              48.68552087440201
            ]
      ]
    ],
    "type": "Polygon"
  },
  "start_date": "2019-01-19",
  "end_date": "2019-01-22"
}

curl

curl -i -X POST 'https://gate.eos.com/api/cz/backend/forecast-history/?api_key=XXX' -H 'Content-Type: application/json' --data-raw '{"end_date": "2019-01-22", "geometry": {"coordinates": [[[33.4918212890625, 48.68552087440201], [33.5577392578125, 48.61112192003074], [33.48907470703125, 48.4838455701099], [33.77471923828125, 48.40732607972984], [34.05487060546875, 48.41097247934197], [33.98895263671875, 48.58750908593607], [33.84063720703125, 48.73445537176822], [33.4918212890625, 48.68552087440201]]], "type": "Polygon"}, "polygon_id": "0dgf09gmudf0gudgdf", "start_date": "2019-01-19"}'

Example response:

HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8

[{
"temperature_min": -1.82074214058824,
"temperature_max": -0.0657615796470588,
"vapour_pressure": 0.634676428352941,
"wind_speed": 0.194872362635294,
"rainfall": 2.96453559447059e-38,
"show_depth": 3.34368932176471,
"hardening_index": 2,
"temp_critical": -27.9588235294118,
"date": "2019-01-19"
},
  {
"temperature_min": -16.2085643764706,
"temperature_max": -3.22197180705882,
"vapour_pressure": 2.51253397352941,
"wind_speed": 0.724812482941177,
"rainfall": 0,
"show_depth": 23.7874697470588,
"hardening_index": 2,
"temp_critical": -45,
"date": "2019-01-20"
},
  {
"temperature_min": -11.7552036411765,
"temperature_max": -1.56245907647059,
"vapour_pressure": 3.58859056647059,
"wind_speed": 2.51587100588235,
"rainfall": 12.4788357176471,
"show_depth": 37.1782906470588,
"hardening_index": 2,
"temp_critical": -45,
"date": "2019-01-21"
},
  {
"temperature_min": -21.1378973823529,
"temperature_max": -10.5371610470588,
"vapour_pressure": 1.50330619941176,
"wind_speed": 0.366621801882353,
"rainfall": 0.00026467246,
"show_depth": 36.8081232,
"hardening_index": 2,
"temp_critical": -45,
"date": "2019-01-22"
}]