GeocodeRequest

Amazon Web ServicesGeocodingGeofencingLocationMapsRouting

Properties

Name Type Description
QueryText string The free-form text query to match addresses against. This is usually a partially typed address from an end user in an address box or form.
QueryComponents object
MaxResults integer An optional limit for the number of results returned in a single call. Default value: 20
BiasPosition array The position, in longitude and latitude, that the results should be close to. Typically, place results returned are ranked higher the closer they are to this position. Stored in [lng, lat] and in the
Filter object
AdditionalFeatures array A list of optional additional parameters, such as time zone, that can be requested for each result.
Language string A list of BCP 47 compliant language codes for the results to be rendered in. If there is no data for the result in the requested language, data will be returned in the default language for the entry.
PoliticalView string The alpha-2 or alpha-3 character code for the political view of a country. The political view applies to the results of the request to represent unresolved territorial claims through the point of view
IntendedUse string Indicates if the query results will be persisted in customer infrastructure. Defaults to SingleUse (not stored). Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers. When
Key string Optional: The API key to be used for authorization. Either an API key or valid SigV4 signature must be provided when making a request.
PostalCodeMode string The PostalCodeMode affects how postal code results are returned. If a postal code spans multiple localities and this value is empty, partial district or locality information may be returned under a si
AddressTranslations array Specifies which address components to include translations for. Translations include all name variants and alternative names for the requested fields in all available languages. Valid values are Distr
AddressNamesMode string Specifies how address names are returned. If not set, the service returns normalized (official) names by default. When set to Matched, address names in the response are based on the input query rather
View JSON Schema on GitHub

JSON Schema

amazon-location-service-geocode-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-location-service/json-schema/amazon-location-service-geocode-request-schema.json",
  "title": "GeocodeRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-location-service-operations-api-openapi.yml#/components/schemas/GeocodeRequest",
  "type": "object",
  "properties": {
    "QueryText": {
      "type": "string",
      "description": "The free-form text query to match addresses against. This is usually a partially typed address from an end user in an address box or form."
    },
    "QueryComponents": {
      "$ref": "#/$defs/GeocodeQueryComponents"
    },
    "MaxResults": {
      "type": "integer",
      "description": "An optional limit for the number of results returned in a single call. Default value: 20"
    },
    "BiasPosition": {
      "type": "array",
      "items": {
        "type": "number"
      },
      "description": "The position, in longitude and latitude, that the results should be close to. Typically, place results returned are ranked higher the closer they are to this position. Stored in [lng, lat] and in the WGS 84 format."
    },
    "Filter": {
      "$ref": "#/$defs/GeocodeFilter"
    },
    "AdditionalFeatures": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "TimeZone",
          "Access",
          "SecondaryAddresses",
          "Intersections"
        ]
      },
      "description": "A list of optional additional parameters, such as time zone, that can be requested for each result."
    },
    "Language": {
      "type": "string",
      "description": "A list of BCP 47 compliant language codes for the results to be rendered in. If there is no data for the result in the requested language, data will be returned in the default language for the entry."
    },
    "PoliticalView": {
      "type": "string",
      "description": "The alpha-2 or alpha-3 character code for the political view of a country. The political view applies to the results of the request to represent unresolved territorial claims through the point of view of the specified country."
    },
    "IntendedUse": {
      "type": "string",
      "enum": [
        "SingleUse",
        "Storage"
      ],
      "description": "Indicates if the query results will be persisted in customer infrastructure. Defaults to SingleUse (not stored). Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers. When storing Geocode responses, you must set this field to Storage to comply with the terms of service. These requests will be charged at a higher rate. Please review the user agreement and service pricing structure to determine the correct setting for your use case."
    },
    "Key": {
      "type": "string",
      "description": "Optional: The API key to be used for authorization. Either an API key or valid SigV4 signature must be provided when making a request."
    },
    "PostalCodeMode": {
      "type": "string",
      "enum": [
        "MergeAllSpannedLocalities",
        "EnumerateSpannedLocalities",
        "EnumerateSpannedDistricts"
      ],
      "description": "The PostalCodeMode affects how postal code results are returned. If a postal code spans multiple localities and this value is empty, partial district or locality information may be returned under a single postal code result entry. If it's populated with the value EnumerateSpannedLocalities, all cities in that postal code are returned. If it's populated with the value EnumerateSpannedDistricts, all combinations of the postal code with the corresponding district and city names are returned."
    },
    "AddressTranslations": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "District",
          "Locality",
          "Region",
          "SubRegion"
        ]
      },
      "description": "Specifies which address components to include translations for. Translations include all name variants and alternative names for the requested fields in all available languages. Valid values are District, Locality, Region, and SubRegion."
    },
    "AddressNamesMode": {
      "type": "string",
      "enum": [
        "Matched",
        "Administrative"
      ],
      "description": "Specifies how address names are returned. If not set, the service returns normalized (official) names by default. When set to Matched, address names in the response are based on the input query rather than official names. When set to Administrative, the service returns the official administrative names for address components. Administrative currently applies only to addresses in the United States."
    }
  },
  "$defs": {
    "GeocodeFilter": {
      "type": "object",
      "properties": {
        "IncludeCountries": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of countries that all results must be in. Countries are represented by either their alpha-2 or alpha-3 character codes."
        },
        "IncludePlaceTypes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "Locality",
              "PostalCode",
              "Intersection",
              "Street",
              "PointAddress",
              "InterpolatedAddress",
              "SecondaryAddress",
              "PointOfInterest",
              "Country",
              "Region"
            ]
          },
          "description": "The included place types."
        }
      }
    },
    "GeocodeQueryComponents": {
      "type": "object",
      "properties": {
        "Country": {
          "type": "string",
          "description": "The alpha-2 or alpha-3 character code for the country that the results will be present in."
        },
        "Region": {
          "type": "string",
          "description": "The region or state results should be to be present in. Example: North Rhine-Westphalia."
        },
        "SubRegion": {
          "type": "string",
          "description": "The sub-region or county for which results should be present in."
        },
        "Locality": {
          "type": "string",
          "description": "The city or locality results should be present in. Example: Vancouver."
        },
        "District": {
          "type": "string",
          "description": "The district or division of a city the results should be present in."
        },
        "Street": {
          "type": "string",
          "description": "The name of the street results should be present in."
        },
        "AddressNumber": {
          "type": "string",
          "description": "The house number or address results should have."
        },
        "PostalCode": {
          "type": "string",
          "description": "An alphanumeric string included in a postal address to facilitate mail sorting, such as post code, postcode, or ZIP code for which the result should possess."
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/amazon-location-service-geocode-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.