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

Places

import { Places } from "https://googleapis.deno.dev/v1/places:v1.ts";
class Places {
constructor(client?: CredentialsClient, baseUrl?: string);
async placesGet(name: string, opts?: PlacesGetOptions): Promise<GoogleMapsPlacesV1Place>;
async placesPhotosGetMedia(name: string, opts?: PlacesPhotosGetMediaOptions): Promise<GoogleMapsPlacesV1PhotoMedia>;
}

§Constructors

§
new Places(client?: CredentialsClient, baseUrl?: string)
[src]

§Methods

§

Returns predictions for the given input.

§
placesGet(name: string, opts?: PlacesGetOptions): Promise<GoogleMapsPlacesV1Place>
[src]

Get the details of a place based on its resource name, which is a string in the places/{place_id} format.

@param name

Required. The resource name of a place, in the places/{place_id} format.

§
placesPhotosGetMedia(name: string, opts?: PlacesPhotosGetMediaOptions): Promise<GoogleMapsPlacesV1PhotoMedia>
[src]

Get a photo media with a photo reference string.

@param name

Required. The resource name of a photo media in the format: places/{place_id}/photos/{photo_reference}/media. The resource name of a photo as returned in a Place object's photos.name field comes with the format places/{place_id}/photos/{photo_reference}. You need to append /media at the end of the photo resource to get the photo media resource name.

§

Search for places near locations.

§

Text query based place search.