Tiled weather maps

Available parameters

  1. humidity
  2. prec
  3. pressureMm
  4. snowDepth
  5. soilMoisture
  6. soilTemperature
  7. surfaceTemperature
  8. temperature
  9. waterTemperature
  10. windSpeed

Timeline

The first step is to get information about the available time points for which you can get tiles.
The list of such steps is called a "Timeline".

Request example:



{
  tiles(request: { lat:  52.37175, lon: 4.89358 }) {
    temperature {
      steps {
        genTime

        time
        timestamp

        bounds {
          lat { min max }
          lon { min max }
        }

        resolution { x y }

        value
      }
    }
  }
}

Response:

{
  "data": {
    "tiles": {
      "temperature": {
        "steps": [
          {
            // Time of map generation (gen_time).
            // This value is needed to synchronize map tiles.
            // Is a required parameter in tile requests.
            "genTime": "1673948778",

            // Step time in ISO format.
            "time": "2023-01-15T10:00:00+01:00",

            // Step time (for_date).
            // Is a required parameter in tile requests.
            "timestamp": "1673773200",

            // Bounds for which tiles are available.
            "bounds": {
              "lat": {
                "min": -90,
                "max": 90
              },
              "lon": {
                "min": -180,
                "max": 180
              }
            },

            // Resolution of pixel in degrees.
            "resolution": {
              "x": 0.02,
              "y": 0.02
            },

            // Step value of the parameter at this point.
            "value": 5
          }
        ]
      }
    }
  }
}

Tiles

After the timeline is requested, you can get the tiles:

https://api.meteum.ai/raster-maps/temperature/tile?x=%x&y=%y&z=%z&for_date=1673773200&gen_time=1673948778

You need to work with such endpoint in the same way as tile maps, except required parameters needs to be passed:

  • for_date – step timestamp.
  • gen_time – generation timestamp.