interface StructuredFormatting {
    main_text: string;
    main_text_matched_substrings: PredictionSubstring[];
    secondary_text: string;
    secondary_text_matched_substrings: PredictionSubstring[];
}

Properties

main_text: string

contains the main text of a prediction, usually the name of the place.

main_text_matched_substrings: PredictionSubstring[]

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

secondary_text: string

contains the secondary text of a prediction, usually the location of the place.

secondary_text_matched_substrings: PredictionSubstring[]

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