Places
import { Places } from "https://googleapis.deno.dev/v1/places:v1.ts";
class Places {}
async placesAutocomplete(req: GoogleMapsPlacesV1AutocompletePlacesRequest): Promise<GoogleMapsPlacesV1AutocompletePlacesResponse>;
async placesPhotosGetMedia(name: string, opts?: PlacesPhotosGetMediaOptions): Promise<GoogleMapsPlacesV1PhotoMedia>;
async placesSearchNearby(req: GoogleMapsPlacesV1SearchNearbyRequest): Promise<GoogleMapsPlacesV1SearchNearbyResponse>;
async placesSearchText(req: GoogleMapsPlacesV1SearchTextRequest): Promise<GoogleMapsPlacesV1SearchTextResponse>;
§Methods
§
placesAutocomplete(req: GoogleMapsPlacesV1AutocompletePlacesRequest): Promise<GoogleMapsPlacesV1AutocompletePlacesResponse>
[src]Returns predictions for the given input.
§
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.
§
placesSearchNearby(req: GoogleMapsPlacesV1SearchNearbyRequest): Promise<GoogleMapsPlacesV1SearchNearbyResponse>
[src]Search for places near locations.
§
placesSearchText(req: GoogleMapsPlacesV1SearchTextRequest): Promise<GoogleMapsPlacesV1SearchTextResponse>
[src]Text query based place search.