{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-maps/json-schema/microsoft-azure-maps-reverse-geocoding-batch-request-body-schema.json",
  "title": "ReverseGeocodingBatchRequestBody",
  "description": "The request body for the `Get Reverse Geocoding Batch` operation. Carries one or more\nindividual reverse-geocoding queries — between 1 and 100, inclusive — that the service\nprocesses as a single call and returns as a parallel `batchItems` array on\n`GeocodingBatchResponse`.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-maps-reversegeocode-batch-api-openapi.yml#/components/schemas/ReverseGeocodingBatchRequestBody",
  "type": "object",
  "properties": {
    "batchItems": {
      "type": "array",
      "description": "The reverse-geocoding queries to process in this batch. Each entry is one independent\nreverse-geocoding request; the service returns one corresponding entry in\n`GeocodingBatchResponse.batchItems` per query, in the same order.",
      "items": {
        "$ref": "#/$defs/ReverseGeocodingBatchRequestItem"
      }
    }
  },
  "$defs": {
    "ResultTypeEnum": {
      "type": "string",
      "description": "An entity type returned by the `Get Reverse Geocoding Batch` operation. Supplied as one or\nmore values in the per-batch-item `resultTypes` field to restrict the response for that\nitem to specific kinds of locations; when the field is omitted, all entity types are\neligible. When entities of more than one type match a coordinate, only the most specific\nis returned. Listed from most specific to least specific: `Address`, `Neighborhood`,\n`PopulatedPlace`, `Postcode1`, `AdminDivision1`, `AdminDivision2`, `CountryRegion`.",
      "enum": [
        "Address",
        "Neighborhood",
        "PopulatedPlace",
        "Postcode1",
        "AdminDivision1",
        "AdminDivision2",
        "CountryRegion"
      ],
      "x-ms-enum": {
        "name": "ResultTypeEnum",
        "modelAsString": true,
        "values": [
          {
            "name": "Address",
            "value": "Address",
            "description": "A specific street address."
          },
          {
            "name": "Neighborhood",
            "value": "Neighborhood",
            "description": "A locally recognized area within a populated place, often with informal or culturally\ndefined boundaries."
          },
          {
            "name": "PopulatedPlace",
            "value": "PopulatedPlace",
            "description": "A concentrated area of human settlement, such as a city, town or village."
          },
          {
            "name": "Postcode1",
            "value": "Postcode1",
            "description": "The smallest postal code category, such as a zip code."
          },
          {
            "name": "AdminDivision1",
            "value": "AdminDivision1",
            "description": "First administrative level within the country/region, such as a state or a province."
          },
          {
            "name": "AdminDivision2",
            "value": "AdminDivision2",
            "description": "Second administrative level within the country/region, such as a county."
          },
          {
            "name": "CountryRegion",
            "value": "CountryRegion",
            "description": "A country or region."
          }
        ]
      }
    },
    "ReverseGeocodingBatchRequestItem": {
      "type": "object",
      "description": "One reverse-geocoding query inside a `ReverseGeocodingBatchRequestBody.batchItems` array.\nEach item is an independent reverse-geocoding request equivalent to a single call to\n`Get Reverse Geocoding`, expressed as fields rather than as URL query parameters. Specify\nthe location to reverse-geocode via `coordinates`; optionally narrow the entity types via\n`resultTypes` and the geopolitical view via `view`.",
      "properties": {
        "optionalId": {
          "type": "string",
          "description": "An optional caller-supplied identifier echoed back on the matching response entry as\n`GeocodingBatchResponseItem.optionalId`. Useful for correlating responses to requests by a\nstable application-side identifier rather than relying on array position alone."
        },
        "coordinates": {
          "type": "array",
          "description": "The location to reverse-geocode, encoded as `[longitude, latitude]` in WGS 84 order. For\nexample, `[-122.138681, 47.630358]` for a point in Redmond, Washington.",
          "items": {
            "type": "number",
            "format": "double"
          }
        },
        "resultTypes": {
          "type": "array",
          "description": "Restricts the response to specific kinds of locations. When omitted, all entity types are\neligible. See `ResultTypeEnum` for the value list and the most-specific-wins selection\nbehavior when entities of multiple types match.",
          "items": {
            "$ref": "#/$defs/ResultTypeEnum"
          }
        },
        "view": {
          "type": "string",
          "description": "An [ISO 3166-1 Alpha-2 region/country\ncode](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) identifying the region whose\ngeopolitical view should be applied to disputed borders and labels in the response. See\n[Supported Views](https://aka.ms/AzureMapsLocalizationViews) for the available values."
        }
      }
    }
  }
}