{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-maps/json-schema/microsoft-azure-maps-ip-address-to-location-result-schema.json",
  "title": "IpAddressToLocationResult",
  "description": "This object is returned from a successful call to IP Address to country/region\nAPI",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-maps-geolocation-api-openapi.yml#/components/schemas/IpAddressToLocationResult",
  "type": "object",
  "properties": {
    "countryRegion": {
      "$ref": "#/$defs/CountryRegion",
      "description": "The object containing the country/region information.",
      "readOnly": true
    },
    "ipAddress": {
      "type": "string",
      "description": "The IP Address of the request.",
      "readOnly": true
    }
  },
  "$defs": {
    "CountryRegion": {
      "type": "object",
      "description": "The object containing the country/region information.",
      "properties": {
        "isoCode": {
          "type": "string",
          "description": "The IP address's 2-character country or region code ([ISO\n3166-1](https://www.iso.org/iso-3166-country-codes.html)). Note that IP\naddresses in ranges reserved for special purposes will return Null for\ncountry/region.",
          "readOnly": true
        }
      }
    }
  }
}