Tomorrow.io · Schema

LocationUpdateRequest

Payload to update a saved location.

WeatherClimateForecastHistorical WeatherAir QualityPollenFireFloodRoutesMap TilesAviationMaritimePublic APIs

Properties

Name Type Description
name string
geometry object GeoJSON geometry — Point, LineString, or Polygon.
tags array
View JSON Schema on GitHub

JSON Schema

location-update-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/tomorrow/refs/heads/main/json-schema/location-update-request-schema.json",
  "title": "LocationUpdateRequest",
  "description": "Payload to update a saved location.",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "geometry": {
      "type": "object",
      "description": "GeoJSON geometry \u2014 Point, LineString, or Polygon.",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "Point",
            "LineString",
            "Polygon"
          ],
          "example": "Point"
        },
        "coordinates": {
          "type": "array",
          "items": {},
          "example": [
            -71.0466,
            42.3478
          ]
        }
      },
      "required": [
        "type",
        "coordinates"
      ]
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}