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

Usage

import * as mod from "https://googleapis.deno.dev/v1/places:v1.ts";

§Classes

GoogleAuth
Places

§Variables

auth

§Interfaces

CredentialsClient

Defines the root interface for all clients that generate credentials for calling Google APIs. All clients should implement this interface.

GoogleGeoTypeViewport

A latitude-longitude viewport, represented as two diagonally opposite low and high points. A viewport is considered a closed region, i.e. it includes its boundary. The latitude bounds must range between -90 to 90 degrees inclusive, and the longitude bounds must range between -180 to 180 degrees inclusive. Various cases include: - If low = high, the viewport consists of that single point. - If low.longitude > high.longitude, the longitude range is inverted (the viewport crosses the 180 degree longitude line). - If low.longitude = -180 degrees and high.longitude = 180 degrees, the viewport includes all longitudes. - If low.longitude = 180 degrees and high.longitude = -180 degrees, the longitude range is empty. - If low.latitude > high.latitude, the latitude range is empty. Both low and high must be populated, and the represented box cannot be empty (as specified by the definitions above). An empty viewport will result in an error. For example, this viewport fully encloses New York City: { "low": { "latitude": 40.477398, "longitude": -74.259087 }, "high": { "latitude": 40.91618, "longitude": -73.70018 } }

GoogleMapsPlacesV1AuthorAttribution

Information about the author of the UGC data. Used in Photo, and Review.

GoogleMapsPlacesV1AutocompletePlacesRequest

Request proto for AutocompletePlaces.

GoogleMapsPlacesV1AutocompletePlacesRequestLocationBias

The region to search. The results may be biased around the specified region.

GoogleMapsPlacesV1AutocompletePlacesRequestLocationRestriction

The region to search. The results will be restricted to the specified region.

GoogleMapsPlacesV1AutocompletePlacesResponse

Response proto for AutocompletePlaces.

GoogleMapsPlacesV1AutocompletePlacesResponseSuggestion

An Autocomplete suggestion result.

GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText

Text representing a Place or query prediction. The text may be used as is or formatted.

GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionPlacePrediction

Prediction results for a Place Autocomplete prediction.

GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionQueryPrediction

Prediction results for a Query Autocomplete prediction.

GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStringRange

Identifies a substring within a given text.

GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat

Contains a breakdown of a Place or query prediction into main text and secondary text. For Place predictions, the main text contains the specific name of the Place. For query predictions, the main text contains the query. The secondary text contains additional disambiguating features (such as a city or region) to further identify the Place or refine the query.

GoogleMapsPlacesV1Circle

Circle with a LatLng as center and radius.

GoogleMapsPlacesV1EVChargeOptions

Information about the EV Charge Station hosted in Place. Terminology follows https://afdc.energy.gov/fuels/electricity_infrastructure.html One port could charge one car at a time. One port has one or more connectors. One station has one or more ports.

GoogleMapsPlacesV1EVChargeOptionsConnectorAggregation

EV charging information grouped by [type, max_charge_rate_kw]. Shows EV charge aggregation of connectors that have the same type and max charge rate in kw.

GoogleMapsPlacesV1FuelOptions

The most recent information about fuel options in a gas station. This information is updated regularly.

GoogleMapsPlacesV1FuelOptionsFuelPrice

Fuel price information for a given type.

GoogleMapsPlacesV1Photo

Information about a photo of a place.

GoogleMapsPlacesV1PhotoMedia

A photo media from Places API.

GoogleMapsPlacesV1Place

All the information representing a Place.

GoogleMapsPlacesV1PlaceAccessibilityOptions

Information about the accessibility options a place offers.

GoogleMapsPlacesV1PlaceAddressComponent

The structured components that form the formatted address, if this information is available.

GoogleMapsPlacesV1PlaceAttribution

Information about data providers of this place.

GoogleMapsPlacesV1PlaceOpeningHours

Information about business hour of the place.

GoogleMapsPlacesV1PlaceOpeningHoursPeriod

A period the place remains in open_now status.

GoogleMapsPlacesV1PlaceOpeningHoursPeriodPoint

Status changing points.

GoogleMapsPlacesV1PlaceOpeningHoursSpecialDay

Structured information for special days that fall within the period that the returned opening hours cover. Special days are days that could impact the business hours of a place, e.g. Christmas day.

GoogleMapsPlacesV1PlaceParkingOptions

Information about parking options for the place. A parking lot could support more than one option at the same time.

GoogleMapsPlacesV1PlacePaymentOptions

Payment options the place accepts.

GoogleMapsPlacesV1PlacePlusCode

Plus code (http://plus.codes) is a location reference with two formats: global code defining a 14mx14m (1/8000th of a degree) or smaller rectangle, and compound code, replacing the prefix with a reference location.

GoogleMapsPlacesV1PlaceSubDestination

Place resource name and id of sub destinations that relate to the place. For example, different terminals are different destinations of an airport.

GoogleMapsPlacesV1Review

Information about a review of a place.

GoogleMapsPlacesV1SearchNearbyRequest

Request proto for Search Nearby.

GoogleMapsPlacesV1SearchNearbyRequestLocationRestriction

The region to search.

GoogleMapsPlacesV1SearchNearbyResponse

Response proto for Search Nearby.

GoogleMapsPlacesV1SearchTextRequest

Request proto for SearchText.

GoogleMapsPlacesV1SearchTextRequestEVOptions

Searchable EV options of a place search request.

GoogleMapsPlacesV1SearchTextRequestLocationBias

The region to search. This location serves as a bias which means results around given location might be returned.

GoogleMapsPlacesV1SearchTextRequestLocationRestriction

The region to search. This location serves as a restriction which means results outside given location will not be returned.

GoogleMapsPlacesV1SearchTextResponse

Response proto for SearchText.

GoogleTypeDate

Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp

GoogleTypeLatLng

An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges.

GoogleTypeLocalizedText

Localized variant of a text in a particular language.

GoogleTypeMoney

Represents an amount of money with its currency type.

PlacesGetOptions

Additional options for Places#placesGet.

PlacesPhotosGetMediaOptions

Additional options for Places#placesPhotosGetMedia.