{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/yatmo/main/json-schema/yatmo-listing-enrichment-schema.json",
  "title": "ListingEnrichment",
  "x-generated": "2026-10-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/yatmo-openapi.json#/components/schemas/ListingEnrichment",
  "type": "object",
  "properties": {
    "Latitude": {
      "type": "number",
      "format": "double"
    },
    "Longitude": {
      "type": "number",
      "format": "double"
    },
    "Country": {
      "type": [
        "string",
        "null"
      ]
    },
    "Language": {
      "type": [
        "string",
        "null"
      ]
    },
    "SearchRadiusMeters": {
      "type": "integer",
      "format": "int32"
    },
    "Categories": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/EnrichedCategory"
      }
    }
  },
  "additionalProperties": false,
  "$defs": {
    "EnrichedCategory": {
      "type": "object",
      "properties": {
        "Id": {
          "type": "integer",
          "format": "int64"
        },
        "Key": {
          "type": [
            "string",
            "null"
          ]
        },
        "Group": {
          "type": [
            "string",
            "null"
          ]
        },
        "Label": {
          "type": [
            "string",
            "null"
          ]
        },
        "Nearest": {
          "allOf": [
            {
              "$ref": "#/$defs/NearestPoi"
            }
          ],
          "nullable": true
        }
      },
      "additionalProperties": false
    },
    "NearestPoi": {
      "type": "object",
      "properties": {
        "Name": {
          "type": [
            "string",
            "null"
          ]
        },
        "Latitude": {
          "type": "number",
          "format": "double"
        },
        "Longitude": {
          "type": "number",
          "format": "double"
        },
        "StraightLineDistanceMeters": {
          "type": "integer",
          "format": "int32"
        },
        "Walking": {
          "allOf": [
            {
              "$ref": "#/$defs/TravelInfo"
            }
          ],
          "nullable": true
        },
        "Bicycling": {
          "allOf": [
            {
              "$ref": "#/$defs/TravelInfo"
            }
          ],
          "nullable": true
        },
        "Driving": {
          "allOf": [
            {
              "$ref": "#/$defs/TravelInfo"
            }
          ],
          "nullable": true
        },
        "Transit": {
          "allOf": [
            {
              "$ref": "#/$defs/TravelInfo"
            }
          ],
          "nullable": true
        }
      },
      "additionalProperties": false
    },
    "TravelInfo": {
      "type": "object",
      "properties": {
        "DistanceMeters": {
          "type": "integer",
          "format": "int32"
        },
        "DurationSeconds": {
          "type": "integer",
          "format": "int32"
        },
        "DurationMinutes": {
          "type": "integer",
          "format": "int32"
        }
      },
      "additionalProperties": false
    }
  }
}