AddressComponent

An individual address component of a geocoding result

EnvironmentGeocodingGeolocationMapsNavigationPlacesRoutingSolar

Properties

Name Type Description
long_name string The full text description of the address component
short_name string An abbreviated textual name for the address component
types array Array indicating the type of the address component
View JSON Schema on GitHub

JSON Schema

google-maps-addresscomponent-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/AddressComponent",
  "title": "AddressComponent",
  "type": "object",
  "description": "An individual address component of a geocoding result",
  "properties": {
    "long_name": {
      "type": "string",
      "description": "The full text description of the address component",
      "example": "Mountain View"
    },
    "short_name": {
      "type": "string",
      "description": "An abbreviated textual name for the address component",
      "example": "MV"
    },
    "types": {
      "type": "array",
      "description": "Array indicating the type of the address component",
      "items": {
        "type": "string"
      },
      "example": [
        "locality",
        "political"
      ]
    }
  },
  "required": [
    "long_name",
    "short_name",
    "types"
  ]
}