Geometry

Geometry information about the geocoding result

EnvironmentGeocodingGeolocationMapsNavigationPlacesRoutingSolar

Properties

Name Type Description
location object
location_type string The type of location returned. ROOFTOP indicates a precise geocode, RANGE_INTERPOLATED indicates an approximation between two precise points, GEOMETRIC_CENTER indicates a geometric center, and APPROXI
viewport object
bounds object
View JSON Schema on GitHub

JSON Schema

google-maps-geometry-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Geometry",
  "title": "Geometry",
  "type": "object",
  "description": "Geometry information about the geocoding result",
  "properties": {
    "location": {
      "$ref": "#/components/schemas/LatLng"
    },
    "location_type": {
      "type": "string",
      "description": "The type of location returned. ROOFTOP indicates a precise geocode, RANGE_INTERPOLATED indicates an approximation between two precise points, GEOMETRIC_CENTER indicates a geometric center, and APPROXIMATE indicates an approximation.",
      "enum": [
        "ROOFTOP",
        "RANGE_INTERPOLATED",
        "GEOMETRIC_CENTER",
        "APPROXIMATE"
      ],
      "example": "ROOFTOP"
    },
    "viewport": {
      "$ref": "#/components/schemas/Bounds"
    },
    "bounds": {
      "$ref": "#/components/schemas/Bounds"
    }
  },
  "required": [
    "location",
    "location_type",
    "viewport"
  ]
}