{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/otter/refs/heads/main/json-structure/public-api-distance-structure.json",
  "name": "Distance",
  "description": "Delivery distance.",
  "type": "object",
  "properties": {
    "unit": {
      "type": "string",
      "description": "Distance unit value.",
      "enum": [
        "KILOMETERS",
        "MILES"
      ],
      "example": "KILOMETERS"
    },
    "value": {
      "type": "double",
      "description": "Distance value.",
      "example": 1.0
    }
  }
}