Skip to content

Latest commit

 

History

History
56 lines (29 loc) · 2.15 KB

AutocompletePrediction.md

File metadata and controls

56 lines (29 loc) · 2.15 KB

See html formatted version

AutocompletePrediction interface

google.maps.places.AutocompletePrediction interface

Represents a single autocomplete prediction.

Library

places

Properties

undefined

Type:  string

This is the unformatted version of the query suggested by the Places service.

undefined

Type:  number optional

The distance in meters of the place from the AutocompletionRequest.origin.

undefined

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.

undefined

Type:  string

A place ID that can be used to retrieve details about this place using the place details service (see PlacesService.getDetails).

undefined

Type:  StructuredFormatting

Structured information about the place's description, divided into a main text and a secondary text, including an array of matched substrings from the autocomplete input, identified by an offset and a length, expressed in unicode characters.

undefined

Type:  Array<PredictionTerm>

Information about individual terms in the above description, from most to least specific. For example, "Taco Bell", "Willitis", and "CA".

undefined

Type:  Array

An array of types that the prediction belongs to, for example 'establishment' or 'geocode'.