{ "$schema": "https://json-structure.org/meta/core/v0/#", "$id": "https://raw.githubusercontent.com/api-evangelist/tomorrow/refs/heads/main/json-structure/route-request-structure.json", "name": "RouteRequest", "description": "Route weather request body.", "type": "object", "properties": { "route": { "type": "object", "properties": { "waypoints": { "type": "array", "items": { "type": "object", "description": "A waypoint on the route.", "properties": { "location": { "type": "array", "items": { "type": "double" }, "minItems": 2, "maxItems": 2, "example": [ -71.0466, 42.3478 ] }, "arrivalTime": { "type": "datetime", "example": "2026-05-30T13:30:00Z" } }, "required": [ "location" ] }, "minItems": 2 } }, "required": [ "waypoints" ] }, "fields": { "type": "array", "items": { "type": "string" }, "example": [ "temperature", "precipitationIntensity", "visibility", "windSpeed" ] }, "units": { "type": "string", "enum": [ "metric", "imperial" ], "default": "metric" } }, "required": [ "route", "fields" ] }