{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rijwind-com/json-schema/rijwind-com-elevation-request-schema.json",
  "title": "ElevationRequest",
  "description": "Elevation lookup. Provide either `points` (discrete coordinates) or `encodedPolyline` (a route, resampled server-side) — exactly one is required.",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rijwind-com-openapi.json#/components/schemas/ElevationRequest",
  "properties": {
    "encodedPolyline": {
      "description": "A route as a single encoded polyline (precision 6). The server samples\nit at `samples` evenly-spaced points — send a whole GPS track this way\nrather than thousands of individual points.",
      "type": [
        "string",
        "null"
      ]
    },
    "points": {
      "description": "Up to 512 discrete `(lat, lon)` points to look up. Omit when using\n`encodedPolyline`.",
      "items": {
        "$ref": "#/$defs/LngLat"
      },
      "maxItems": 512,
      "type": [
        "array",
        "null"
      ]
    },
    "samples": {
      "description": "Number of evenly-spaced samples for `encodedPolyline` mode. Default\n256, capped at 1000.",
      "format": "int32",
      "minimum": 0,
      "type": [
        "integer",
        "null"
      ]
    }
  },
  "type": "object",
  "$defs": {
    "LngLat": {
      "description": "A `(lat, lon)` pair. Latitude is in [-90, 90], longitude in [-180, 180].",
      "properties": {
        "lat": {
          "format": "double",
          "type": "number"
        },
        "lon": {
          "format": "double",
          "type": "number"
        }
      },
      "required": [
        "lat",
        "lon"
      ],
      "type": "object"
    }
  }
}