A widget that provides Place predictions based on a user's text
input. It attaches to an input element of type text
, and
listens for text entry in that field. The list of predictions is
presented as a drop-down list, and is updated as text is entered.
Access by calling const {Autocomplete} = await google.maps.importLibrary("places")
. See
https://developers.google.com/maps/documentation/javascript/libraries.
The <input>
text field to which the
Autocomplete
should be attached.
Options.
Adds the given listener function to the given event name. Returns an
identifier for this listener that can be used with
google.maps.event.removeListener
.
Binds a View to a Model.
Gets a value.
Returns the bounds to which predictions are biased.
Returns the fields to be included for the Place in the details response when the details are successfully retrieved. For a list of fields see google.maps.places.PlaceResult.
Returns the details of the Place selected by user if the details were
successfully retrieved. Otherwise returns a stub Place object, with the
name
property set to the current value of the input field.
Notify all observers of a change on this property. This notifies both objects that are bound to the object's property as well as the object that it is bound to.
Sets a value.
Sets the preferred area within which to return Place results. Results are biased towards, but not restricted to, this area.
The biasing bounds.
Sets the component restrictions. Component restrictions are used to restrict predictions to only those within the parent component. For example, the country.
The restrictions to use.
Sets the fields to be included for the Place in the details response when the details are successfully retrieved. For a list of fields see google.maps.places.PlaceResult.
Sets the types of predictions to be returned. For supported types, see the developer's guide. If no types are specified, all types will be returned.
The types of predictions to be included.
Sets a collection of key-value pairs.
Removes a binding. Unbinding will set the unbound property to the current value. The object will not be notified, as the value has not changed.
Removes all bindings.
Generated using TypeDoc
A widget that provides Place predictions based on a user's text input. It attaches to an input element of type
text
, and listens for text entry in that field. The list of predictions is presented as a drop-down list, and is updated as text is entered.Access by calling
const {Autocomplete} = await google.maps.importLibrary("places")
. See https://developers.google.com/maps/documentation/javascript/libraries.