Tomorrow.io · Schema

GeoJSONGeometry

GeoJSON geometry — Point, LineString, or Polygon.

WeatherClimateForecastHistorical WeatherAir QualityPollenFireFloodRoutesMap TilesAviationMaritimePublic APIs

Properties

Name Type Description
type string
coordinates array
View JSON Schema on GitHub

JSON Schema

geo-jsongeometry-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/geo-jsongeometry-schema.json",
  "title": "GeoJSONGeometry",
  "description": "GeoJSON geometry \u2014 Point, LineString, or Polygon.",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "Point",
        "LineString",
        "Polygon"
      ],
      "example": "Point"
    },
    "coordinates": {
      "type": "array",
      "items": {},
      "example": [
        -71.0466,
        42.3478
      ]
    }
  },
  "required": [
    "type",
    "coordinates"
  ]
}