google.maps.places.AutocompletionRequest
interface
An Autocompletion request to be sent to AutocompleteService.getPlacePredictions.
places
| Properties | |
|---|---|
bounds |
Type:
LatLngBounds|LatLngBoundsLiteral optionalBounds for prediction biasing. Predictions will be biased towards, but not restricted to, the given bounds. Both location and radius will be ignored if bounds is set. |
componentRestrictions |
Type:
ComponentRestrictions optionalThe component restrictions. Component restrictions are used to restrict predictions to only those within the parent component. For example, the country. |
input |
Type:
stringThe user entered input string. |
location |
Type:
LatLng optionalLocation for prediction biasing. Predictions will be biased towards the given location and radius. Alternatively, bounds can be used. |
offset |
Type:
number optionalThe character position in the input term at which the service uses text for predictions (the position of the cursor in the input field). |
origin |
Type:
LatLng|LatLngLiteral optionalThe location where AutocompletePrediction.distance_meters is calculated from. |
radius |
Type:
number optionalThe radius of the area used for prediction biasing. The radius is specified in meters, and must always be accompanied by a location property. Alternatively, bounds can be used. |
sessionToken |
Type:
AutocompleteSessionToken optionalUnique reference used to bundle individual requests into sessions. |
types |
Type:
Array<string> optionalThe types of predictions to be returned. For a list of supported types, see the developer's guide. If nothing is specified, all types are returned. In general only a single type is allowed. The exception is that you can safely mix the 'geocode' and 'establishment' types, but note that this will have the same effect as specifying no types. |