interface PlaceQueryAutocompletePrediction {
    description: string;
    matched_substrings: PredictionSubstring[];
    place_id?: string;
    structured_formatting?: StructuredFormatting[];
    terms: PredictionTerm[];
    types?: string[];
}

Properties

description: string

contains the human-readable name for the returned result. For establishment results, this is usually the business name.

matched_substrings: PredictionSubstring[]

contains an offset value and a length. These describe the location of the entered term in the prediction result text, so that the term can be highlighted if desired.

place_id?: string
structured_formatting?: StructuredFormatting[]

contains an array of terms identifying each section of the returned description (a section of the description is generally terminated with a comma).

types?: string[]