Google Maps Platform · Schema
PlacePrediction
A place prediction
EnvironmentGeocodingGeolocationMapsNavigationPlacesRoutingSolar
Properties
| Name | Type | Description |
|---|---|---|
| place | string | The resource name of the suggested place in the format places/{placeId} |
| placeId | string | The place ID of the suggested place |
| text | object | |
| structuredFormat | object | |
| types | array | List of types that apply to this place |
| distanceMeters | integer | The distance in meters from the origin |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/PlacePrediction",
"title": "PlacePrediction",
"type": "object",
"description": "A place prediction",
"properties": {
"place": {
"type": "string",
"description": "The resource name of the suggested place in the format places/{placeId}",
"example": "example_value"
},
"placeId": {
"type": "string",
"description": "The place ID of the suggested place",
"example": "500123"
},
"text": {
"$ref": "#/components/schemas/FormattableText"
},
"structuredFormat": {
"$ref": "#/components/schemas/StructuredFormat"
},
"types": {
"type": "array",
"description": "List of types that apply to this place",
"items": {
"type": "string"
},
"example": []
},
"distanceMeters": {
"type": "integer",
"description": "The distance in meters from the origin",
"example": 10
}
}
}