{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/precisely-apis/main/json-schema/precisely-apis-intersection-response-schema.json",
  "title": "IntersectionResponse",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/precisely-apis-intersection-api-openapi.yml#/components/schemas/IntersectionResponse",
  "properties": {
    "intersection": {
      "items": {
        "$ref": "#/$defs/Intersection"
      },
      "type": "array"
    },
    "matchedAddress": {
      "$ref": "#/$defs/address_1"
    }
  },
  "type": "object",
  "$defs": {
    "Geometry": {
      "properties": {
        "type": {
          "type": "string"
        },
        "coordinates": {
          "items": {
            "format": "double",
            "type": "number"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "Intersection": {
      "properties": {
        "distance": {
          "$ref": "#/$defs/Unit"
        },
        "driveTime": {
          "$ref": "#/$defs/Unit"
        },
        "driveDistance": {
          "$ref": "#/$defs/Unit"
        },
        "geometry": {
          "$ref": "#/$defs/Geometry"
        },
        "roads": {
          "items": {
            "$ref": "#/$defs/road"
          },
          "type": "array",
          "uniqueItems": true
        }
      },
      "type": "object"
    },
    "Unit": {
      "properties": {
        "value": {
          "format": "double",
          "type": "number"
        },
        "unit": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "address_1": {
      "properties": {
        "objectId": {
          "type": "string"
        },
        "displayName": {
          "type": "string"
        },
        "streetSide": {
          "type": "string"
        },
        "businessName": {
          "type": "string"
        },
        "addressLine1": {
          "type": "string"
        },
        "addressLine2": {
          "type": "string"
        },
        "addressLine3": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "stateProvince": {
          "type": "string"
        },
        "county": {
          "type": "string"
        },
        "postalCode": {
          "type": "string"
        },
        "latitude": {
          "type": "string"
        },
        "longitude": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "urbanizationName": {
          "type": "string"
        },
        "formattedAddress": {
          "type": "string"
        },
        "mainAddressLine": {
          "type": "string"
        },
        "addressLastLine": {
          "type": "string"
        },
        "placeName": {
          "type": "string"
        },
        "areaName1": {
          "type": "string"
        },
        "areaName2": {
          "type": "string"
        },
        "areaName3": {
          "type": "string"
        },
        "areaName4": {
          "type": "string"
        },
        "postCode": {
          "type": "string"
        },
        "postCodeExt": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "addressNumber": {
          "type": "string"
        },
        "streetName": {
          "type": "string"
        },
        "unitType": {
          "type": "string"
        },
        "unitValue": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "road": {
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "altName": {
          "type": "string"
        },
        "roadClass": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "lengthInMeters": {
          "type": "string"
        },
        "routeNumber": {
          "type": "string"
        },
        "surfaceType": {
          "type": "string"
        },
        "trafficFlow": {
          "type": "string"
        },
        "isToll": {
          "type": "string"
        },
        "beginningLevel": {
          "type": "string"
        },
        "endingLevel": {
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}