Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a single autocomplete prediction.

Hierarchy

  • AutocompletePrediction

Index

Properties

description: string

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

distance_meters?: number

The distance in meters of the place from the google.maps.places.AutocompletionRequest.origin.

matched_substrings: 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.

place_id: string

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

structured_formatting: 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.

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

types: string[]

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

Generated using TypeDoc