Google Maps Platform · Schema
AutocompleteRequest
Request body for place autocomplete predictions
EnvironmentGeocodingGeolocationMapsNavigationPlacesRoutingSolar
Properties
| Name | Type | Description |
|---|---|---|
| input | string | The text input specifying which place to search for |
| includedPrimaryTypes | array | Restrict results to primary types |
| includedRegionCodes | array | Restrict results to these region codes |
| languageCode | string | The language code for predictions |
| regionCode | string | Region code for biasing |
| inputOffset | integer | Zero-based Unicode character offset of input indicating the cursor position. Use to return more relevant predictions. |
| includeQueryPredictions | boolean | Whether to include query predictions in results |
| sessionToken | string | A random string that groups this request with subsequent Place Details requests for billing. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "AutocompleteRequest",
"type": "object",
"description": "Request body for place autocomplete predictions",
"properties": {
"input": {
"type": "string",
"description": "The text input specifying which place to search for"
},
"includedPrimaryTypes": {
"type": "array",
"description": "Restrict results to primary types"
},
"includedRegionCodes": {
"type": "array",
"description": "Restrict results to these region codes"
},
"languageCode": {
"type": "string",
"description": "The language code for predictions"
},
"regionCode": {
"type": "string",
"description": "Region code for biasing"
},
"inputOffset": {
"type": "integer",
"description": "Zero-based Unicode character offset of input indicating the cursor position. Use to return more relevant predictions."
},
"includeQueryPredictions": {
"type": "boolean",
"description": "Whether to include query predictions in results"
},
"sessionToken": {
"type": "string",
"description": "A random string that groups this request with subsequent Place Details requests for billing."
}
}
}