google.maps.places.AutocompleteService class
Contains methods related to retrieving Autocomplete predictions.
places
Constructor
AutocompleteService()
Parameters: None
Creates a new instance of the AutocompleteService.
Methods
getPlacePredictions(request, callback)
Parameters:
- request: AutocompletionRequest
- callback: function(Array<AutocompletePrediction>, PlacesServiceStatus)
Return Value: None
Retrieves place autocomplete predictions based on the supplied autocomplete request.
getQueryPredictions(request, callback)
Parameters:
- request: QueryAutocompletionRequest
- callback: function(Array<QueryAutocompletePrediction>, PlacesServiceStatus)
Return Value: None
Retrieves query autocomplete predictions based on the supplied query autocomplete request.