interface PlaceAutocompleteResponseData {
    error_message: string;
    html_attributions?: string[];
    next_page_token?: string;
    predictions: PlaceAutocompleteResult[];
    status: Status;
}

Hierarchy (view full)

Properties

error_message: string

When the top-level status code is other than OK, this field contains more detailed information about the reasons behind the given status code.

html_attributions?: string[]

may contain a set of attributions about this listing which must be displayed to the user (some listings may not have attribution).

next_page_token?: string

contains a token that can be used to return up to 20 additional results. A next_page_token will not be returned if there are no additional results to display. The maximum number of results that can be returned is 60. There is a short delay between when a next_page_token is issued, and when it will become valid.

contains an array of places, with information about the place. See Place Autocomplete Results for information about these results. The Places API returns up to 5 results.

status: Status

contains metadata on the request. See Status Codes below.