Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionPlacePrediction

import type { GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionPlacePrediction } from "https://googleapis.deno.dev/v1/places:v1.ts";

Prediction results for a Place Autocomplete prediction.

interface GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionPlacePrediction {
distanceMeters?: number;
place?: string;
placeId?: string;
types?: string[];
}

§Properties

§
distanceMeters?: number
[src]

The length of the geodesic in meters from origin if origin is specified. Certain predictions such as routes may not populate this field.

§
place?: string
[src]

The resource name of the suggested Place. This name can be used in other APIs that accept Place names.

§
placeId?: string
[src]

The unique identifier of the suggested Place. This identifier can be used in other APIs that accept Place IDs.

§

A breakdown of the Place prediction into main text containing the name of the Place and secondary text containing additional disambiguating features (such as a city or region). structured_format is recommended for developers who wish to show two separate, but related, UI elements. Developers who wish to show a single UI element may want to use text instead. They are two different ways to represent a Place prediction. Users should not try to parse structured_format into text or vice versa.

§

Contains the human-readable name for the returned result. For establishment results, this is usually the business name and address. text is recommended for developers who wish to show a single UI element. Developers who wish to show two separate, but related, UI elements may want to use structured_format instead. They are two different ways to represent a Place prediction. Users should not try to parse structured_format into text or vice versa. This text may be different from the display_name returned by GetPlace. May be in mixed languages if the request input and language_code are in different languages or if the Place does not have a translation from the local language to language_code.

§
types?: string[]
[src]

List of types that apply to this Place from Table A or Table B in https://developers.google.com/maps/documentation/places/web-service/place-types. A type is a categorization of a Place. Places with shared types will share similar characteristics.