google.maps.places.QueryAutocompletePrediction interface
Represents a single Query Autocomplete prediction.
places
Properties
Type: string
This is the unformatted version of the query suggested by the Places service.
Type: Array<PredictionSubstring>
A set of substrings in the place's description that match elements in the user's input, suitable for use in highlighting those substrings. Each substring is identified by an offset and a length, expressed in unicode characters.
Type: string optional
Only available if prediction is a place. A place ID that can be used to retrieve details about this place using the place details service (see PlacesService.getDetails).
Type: Array<PredictionTerm>
Information about individual terms in the above description. Categorical terms come first (for example, "restaurant"). Address terms appear from most to least specific. For example, "San Francisco", and "CA".