places/v1 library

Places API (New) - v1

For more information, see mapsplatform.google.com/maps-products/#places-section

Create an instance of PlacesApi to access these resources:

Classes

GoogleGeoTypeViewport
A latitude-longitude viewport, represented as two diagonally opposite low and high points.
GoogleMapsPlacesV1AuthorAttribution
Information about the author of the UGC data.
GoogleMapsPlacesV1AutocompletePlacesRequest
Request proto for AutocompletePlaces.
GoogleMapsPlacesV1AutocompletePlacesRequestLocationBias
The region to search.
GoogleMapsPlacesV1AutocompletePlacesRequestLocationRestriction
The region to search.
GoogleMapsPlacesV1AutocompletePlacesResponse
Response proto for AutocompletePlaces.
GoogleMapsPlacesV1AutocompletePlacesResponseSuggestion
An Autocomplete suggestion result.
GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText
Text representing a Place or query prediction.
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.
GoogleMapsPlacesV1Circle
Circle with a LatLng as center and radius.
GoogleMapsPlacesV1EVChargeOptions
Information about the EV Charge Station hosted in Place.
GoogleMapsPlacesV1EVChargeOptionsConnectorAggregation
EV charging information grouped by [type, max_charge_rate_kw].
GoogleMapsPlacesV1FuelOptions
The most recent information about fuel options in a gas station.
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.
GoogleMapsPlacesV1PlaceParkingOptions
Information about parking options for the place.
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.
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.
GoogleMapsPlacesV1SearchTextRequestLocationBias
The region to search.
GoogleMapsPlacesV1SearchTextRequestLocationRestriction
The region to search.
GoogleMapsPlacesV1SearchTextResponse
Response proto for SearchText.
PlacesApi
PlacesPhotosResource
PlacesResource

Typedefs

GoogleTypeDate = $Date
Represents a whole or partial calendar date, such as a birthday.
GoogleTypeLatLng = $LatLng
An object that represents a latitude/longitude pair.
GoogleTypeLocalizedText = $GoogleTypeLocalizedText
Localized variant of a text in a particular language.
GoogleTypeMoney = $Money
Represents an amount of money with its currency type.

Exceptions / Errors

ApiRequestError
Represents a general error reported by the API endpoint.
DetailedApiRequestError
Represents a specific error reported by the API endpoint.