places

package
v0.138.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2023 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Overview

Package places provides access to the Places API (New).

For product documentation, see: https://mapsplatform.google.com/maps-products/#places-section

Creating a client

Usage example:

import "google.golang.org/api/places/v1"
...
ctx := context.Background()
placesService, err := places.NewService(ctx)

In this example, Google Application Default Credentials are used for authentication.

For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.

Other authentication options

By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes:

placesService, err := places.NewService(ctx, option.WithScopes(places.MapsPlatformPlacesTextsearchScope))

To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:

placesService, err := places.NewService(ctx, option.WithAPIKey("AIza..."))

To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:

config := &oauth2.Config{...}
// ...
token, err := config.Exchange(ctx, ...)
placesService, err := places.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))

See https://godoc.org/google.golang.org/api/option/ for details on options.

Index

Constants

View Source
const (
	// See, edit, configure, and delete your Google Cloud data and see the
	// email address for your Google Account.
	CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"

	// Private Service: https://www.googleapis.com/auth/maps-platform.places
	MapsPlatformPlacesScope = "https://www.googleapis.com/auth/maps-platform.places"

	// Private Service:
	// https://www.googleapis.com/auth/maps-platform.places.textsearch
	MapsPlatformPlacesTextsearchScope = "https://www.googleapis.com/auth/maps-platform.places.textsearch"
)

OAuth2 scopes used by this API.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoogleGeoTypeViewport

type GoogleGeoTypeViewport struct {
	// High: Required. The high point of the viewport.
	High *GoogleTypeLatLng `json:"high,omitempty"`

	// Low: Required. The low point of the viewport.
	Low *GoogleTypeLatLng `json:"low,omitempty"`

	// ForceSendFields is a list of field names (e.g. "High") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "High") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

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 } }

func (*GoogleGeoTypeViewport) MarshalJSON

func (s *GoogleGeoTypeViewport) MarshalJSON() ([]byte, error)

type GoogleMapsPlacesV1AuthorAttribution

type GoogleMapsPlacesV1AuthorAttribution struct {
	// DisplayName: Output only. Name of the author of the Photo or Review.
	DisplayName string `json:"displayName,omitempty"`

	// PhotoUri: Output only. Profile photo URI of the author of the Photo
	// or Review.
	PhotoUri string `json:"photoUri,omitempty"`

	// Uri: Output only. URI of the author of the Photo or Review.
	Uri string `json:"uri,omitempty"`

	// ForceSendFields is a list of field names (e.g. "DisplayName") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "DisplayName") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

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

func (*GoogleMapsPlacesV1AuthorAttribution) MarshalJSON

func (s *GoogleMapsPlacesV1AuthorAttribution) MarshalJSON() ([]byte, error)

type GoogleMapsPlacesV1Circle

type GoogleMapsPlacesV1Circle struct {
	// Center: Required. Center latitude and longitude. The range of
	// latitude must be within [-90.0, 90.0]. The range of the longitude
	// must be within [-180.0, 180.0].
	Center *GoogleTypeLatLng `json:"center,omitempty"`

	// Radius: Required. Radius measured in meters. The radius must be
	// within [0.0, 50000.0].
	Radius float64 `json:"radius,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Center") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Center") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

GoogleMapsPlacesV1Circle: Circle with a LatLng as center and radius.

func (*GoogleMapsPlacesV1Circle) MarshalJSON

func (s *GoogleMapsPlacesV1Circle) MarshalJSON() ([]byte, error)

func (*GoogleMapsPlacesV1Circle) UnmarshalJSON

func (s *GoogleMapsPlacesV1Circle) UnmarshalJSON(data []byte) error

type GoogleMapsPlacesV1Int32Range

type GoogleMapsPlacesV1Int32Range struct {
	// Max: Upper bound. If unset, behavior is documented on the range
	// field.
	Max int64 `json:"max,omitempty"`

	// Min: Lower bound. If unset, behavior is documented on the range
	// field.
	Min int64 `json:"min,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Max") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Max") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

GoogleMapsPlacesV1Int32Range: int 32 range. Both min and max are optional. If only min is set, then the range only has a lower bound. If only max is set, then range only has an upper bound. At least one of min and max must be set. Values are inclusive.

func (*GoogleMapsPlacesV1Int32Range) MarshalJSON

func (s *GoogleMapsPlacesV1Int32Range) MarshalJSON() ([]byte, error)

type GoogleMapsPlacesV1Place

type GoogleMapsPlacesV1Place struct {
	// AddressComponents: Output only. Repeated components for each locality
	// level.
	AddressComponents []*GoogleMapsPlacesV1PlaceAddressComponent `json:"addressComponents,omitempty"`

	// AdrFormatAddress: Output only. The place's address in adr
	// microformat: http://microformats.org/wiki/adr.
	AdrFormatAddress string `json:"adrFormatAddress,omitempty"`

	// Attributions: Output only. A set of data provider that must be shown
	// with this result.
	Attributions []*GoogleMapsPlacesV1PlaceAttribution `json:"attributions,omitempty"`

	// BusinessStatus: Output only. The business status for the place.
	//
	// Possible values:
	//   "BUSINESS_STATUS_UNSPECIFIED" - Default value. This value is
	// unused.
	//   "OPERATIONAL" - The establishment is operational, not necessarily
	// open now.
	//   "CLOSED_TEMPORARILY" - The establishment is temporarily closed.
	//   "CLOSED_PERMANENTLY" - The establishment is permanently closed.
	BusinessStatus string `json:"businessStatus,omitempty"`

	// CurbsidePickup: Output only. Specifies if the business supports
	// curbside pickup.
	CurbsidePickup bool `json:"curbsidePickup,omitempty"`

	// CurrentOpeningHours: Output only. The hours of operation for the next
	// seven days (including today). The time period starts at midnight on
	// the date of the request and ends at 11:59 pm six days later. This
	// field includes the special_days subfield of all hours, set for dates
	// that have exceptional hours.
	CurrentOpeningHours *GoogleMapsPlacesV1PlaceOpeningHours `json:"currentOpeningHours,omitempty"`

	// CurrentSecondaryOpeningHours: Output only. Contains an array of
	// entries for the next seven days including information about secondary
	// hours of a business. Secondary hours are different from a business's
	// main hours. For example, a restaurant can specify drive through hours
	// or delivery hours as its secondary hours. This field populates the
	// type subfield, which draws from a predefined list of opening hours
	// types (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types
	// of the place. This field includes the special_days subfield of all
	// hours, set for dates that have exceptional hours.
	CurrentSecondaryOpeningHours []*GoogleMapsPlacesV1PlaceOpeningHours `json:"currentSecondaryOpeningHours,omitempty"`

	// Delivery: Output only. Specifies if the business supports delivery.
	Delivery bool `json:"delivery,omitempty"`

	// DineIn: Output only. Specifies if the business supports indoor or
	// outdoor seating options.
	DineIn bool `json:"dineIn,omitempty"`

	// DisplayName: Output only. The localized name of the place, suitable
	// as a short human-readable description. For example, "Google Sydney",
	// "Starbucks", "Pyrmont", etc.
	DisplayName *GoogleTypeLocalizedText `json:"displayName,omitempty"`

	// EditorialSummary: Output only. Contains a summary of the place. A
	// summary is comprised of a textual overview, and also includes the
	// language code for these if applicable. Summary text must be presented
	// as-is and can not be modified or altered.
	EditorialSummary *GoogleTypeLocalizedText `json:"editorialSummary,omitempty"`

	// FormattedAddress: Output only. A full, human-readable address for
	// this place.
	FormattedAddress string `json:"formattedAddress,omitempty"`

	// GoogleMapsUri: Output only. A URL providing more information about
	// this place.
	GoogleMapsUri string `json:"googleMapsUri,omitempty"`

	// IconBackgroundColor: Output only. Background color for icon_mask in
	// hex format, e.g. #909CE1.
	IconBackgroundColor string `json:"iconBackgroundColor,omitempty"`

	// IconMaskBaseUri: Output only. A truncated URL to an v2 icon mask.
	// User can access different icon type by appending type suffix to the
	// end (eg, ".svg" or ".png").
	IconMaskBaseUri string `json:"iconMaskBaseUri,omitempty"`

	// Id: Output only. The unique identifier of a place.
	Id string `json:"id,omitempty"`

	// InternationalPhoneNumber: Output only. A human-readable phone number
	// for the place, in international format.
	InternationalPhoneNumber string `json:"internationalPhoneNumber,omitempty"`

	// Location: Output only. The position of this place.
	Location *GoogleTypeLatLng `json:"location,omitempty"`

	// Name: Output only. An ID representing this place which may be used to
	// look up this place again (a.k.a. the API "resource" name: places/).
	Name string `json:"name,omitempty"`

	// NationalPhoneNumber: Output only. A human-readable phone number for
	// the place, in national format.
	NationalPhoneNumber string `json:"nationalPhoneNumber,omitempty"`

	// OpeningHours: Output only. The regular hours of operation.
	OpeningHours *GoogleMapsPlacesV1PlaceOpeningHours `json:"openingHours,omitempty"`

	// PlusCode: Output only. Plus code of the place location lat/long.
	PlusCode *GoogleMapsPlacesV1PlacePlusCode `json:"plusCode,omitempty"`

	// PriceLevel: Output only. Price level of the place.
	//
	// Possible values:
	//   "PRICE_LEVEL_UNSPECIFIED" - Place price level is unspecified or
	// unknown.
	//   "PRICE_LEVEL_FREE" - Place provides free services.
	//   "PRICE_LEVEL_INEXPENSIVE" - Place provides inexpensive services.
	//   "PRICE_LEVEL_MODERATE" - Place provides moderately priced services.
	//   "PRICE_LEVEL_EXPENSIVE" - Place provides expensive services.
	//   "PRICE_LEVEL_VERY_EXPENSIVE" - Place provides very expensive
	// services.
	PriceLevel string `json:"priceLevel,omitempty"`

	// Rating: Output only. A rating between 1.0 and 5.0, based on user
	// reviews of this place.
	Rating float64 `json:"rating,omitempty"`

	// Reservable: Output only. Specifies if the place supports
	// reservations.
	Reservable bool `json:"reservable,omitempty"`

	// Reviews: Output only. List of reviews about this place.
	Reviews []*GoogleMapsPlacesV1Review `json:"reviews,omitempty"`

	// SecondaryOpeningHours: Output only. Contains an array of entries for
	// information about regular secondary hours of a business. Secondary
	// hours are different from a business's main hours. For example, a
	// restaurant can specify drive through hours or delivery hours as its
	// secondary hours. This field populates the type subfield, which draws
	// from a predefined list of opening hours types (such as DRIVE_THROUGH,
	// PICKUP, or TAKEOUT) based on the types of the place.
	SecondaryOpeningHours []*GoogleMapsPlacesV1PlaceOpeningHours `json:"secondaryOpeningHours,omitempty"`

	// ServesBeer: Output only. Specifies if the place serves beer.
	ServesBeer bool `json:"servesBeer,omitempty"`

	// ServesBreakfast: Output only. Specifies if the place serves
	// breakfast.
	ServesBreakfast bool `json:"servesBreakfast,omitempty"`

	// ServesBrunch: Output only. Specifies if the place serves brunch.
	ServesBrunch bool `json:"servesBrunch,omitempty"`

	// ServesDinner: Output only. Specifies if the place serves dinner.
	ServesDinner bool `json:"servesDinner,omitempty"`

	// ServesLunch: Output only. Specifies if the place serves lunch.
	ServesLunch bool `json:"servesLunch,omitempty"`

	// ServesVegetarianFood: Output only. Specifies if the place serves
	// vegetarian food.
	ServesVegetarianFood bool `json:"servesVegetarianFood,omitempty"`

	// ServesWine: Output only. Specifies if the place serves wine.
	ServesWine bool `json:"servesWine,omitempty"`

	// Takeout: Output only. Specifies if the business supports takeout.
	Takeout bool `json:"takeout,omitempty"`

	// Types: Output only. A set of type tags for this result. For example,
	// "political" and "locality".
	Types []string `json:"types,omitempty"`

	// UserRatingCount: Output only. The total number of reviews (with or
	// without text) for this place.
	UserRatingCount int64 `json:"userRatingCount,omitempty"`

	// UtcOffsetMinutes: Output only. Number of minutes this place's
	// timezone is currently offset from UTC. This is expressed in minutes
	// to support timezones that are offset by fractions of an hour, e.g. X
	// hours and 15 minutes.
	UtcOffsetMinutes int64 `json:"utcOffsetMinutes,omitempty"`

	// Viewport: Output only. A viewport suitable for displaying the place
	// on an average-sized map.
	Viewport *GoogleGeoTypeViewport `json:"viewport,omitempty"`

	// WebsiteUri: Output only. The authoritative website for this place,
	// e.g. a business' homepage. Note that for places that are part of a
	// chain (e.g. an IKEA store), this will usually be the website for the
	// individual store, not the overall chain.
	WebsiteUri string `json:"websiteUri,omitempty"`

	// WheelchairAccessibleEntrance: Output only. Specifies if the place has
	// an entrance that is wheelchair-accessible.
	WheelchairAccessibleEntrance bool `json:"wheelchairAccessibleEntrance,omitempty"`

	// ForceSendFields is a list of field names (e.g. "AddressComponents")
	// to unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "AddressComponents") to
	// include in API requests with the JSON null value. By default, fields
	// with empty values are omitted from API requests. However, any field
	// with an empty value appearing in NullFields will be sent to the
	// server as null. It is an error if a field in this list has a
	// non-empty value. This may be used to include null fields in Patch
	// requests.
	NullFields []string `json:"-"`
}

GoogleMapsPlacesV1Place: All the information representing a Place.

func (*GoogleMapsPlacesV1Place) MarshalJSON

func (s *GoogleMapsPlacesV1Place) MarshalJSON() ([]byte, error)

func (*GoogleMapsPlacesV1Place) UnmarshalJSON

func (s *GoogleMapsPlacesV1Place) UnmarshalJSON(data []byte) error

type GoogleMapsPlacesV1PlaceAddressComponent

type GoogleMapsPlacesV1PlaceAddressComponent struct {
	// LanguageCode: Output only. The language used to format this
	// components, in CLDR notation.
	LanguageCode string `json:"languageCode,omitempty"`

	// LongText: Output only. The full text description or name of the
	// address component. For example, an address component for the country
	// Australia may have a long_name of "Australia".
	LongText string `json:"longText,omitempty"`

	// ShortText: Output only. An abbreviated textual name for the address
	// component, if available. For example, an address component for the
	// country of Australia may have a short_name of "AU".
	ShortText string `json:"shortText,omitempty"`

	// Types: Output only. An array indicating the type(s) of the address
	// component.
	Types []string `json:"types,omitempty"`

	// ForceSendFields is a list of field names (e.g. "LanguageCode") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "LanguageCode") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

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

func (*GoogleMapsPlacesV1PlaceAddressComponent) MarshalJSON

func (s *GoogleMapsPlacesV1PlaceAddressComponent) MarshalJSON() ([]byte, error)

type GoogleMapsPlacesV1PlaceAttribution

type GoogleMapsPlacesV1PlaceAttribution struct {
	// Provider: Output only. Name of the Place's data provider.
	Provider string `json:"provider,omitempty"`

	// ProviderUri: Output only. URI to the Place's data provider.
	ProviderUri string `json:"providerUri,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Provider") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Provider") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

GoogleMapsPlacesV1PlaceAttribution: Information about data providers of this place.

func (*GoogleMapsPlacesV1PlaceAttribution) MarshalJSON

func (s *GoogleMapsPlacesV1PlaceAttribution) MarshalJSON() ([]byte, error)

type GoogleMapsPlacesV1PlaceOpeningHours

type GoogleMapsPlacesV1PlaceOpeningHours struct {
	// OpenNow: Output only. Is this place open right now? Always present
	// unless we lack time-of-day or timezone data for these opening hours.
	OpenNow bool `json:"openNow,omitempty"`

	// Periods: Output only. The periods that this place is open during the
	// week. The periods are in chronological order, starting with Sunday in
	// the place-local timezone. An empty (but not absent) value indicates a
	// place that is never open, e.g. because it is closed temporarily for
	// renovations.
	Periods []*GoogleMapsPlacesV1PlaceOpeningHoursPeriod `json:"periods,omitempty"`

	// SecondaryHoursType: Output only. A type string used to identify the
	// type of secondary hours.
	//
	// Possible values:
	//   "SECONDARY_HOURS_TYPE_UNSPECIFIED" - Default value when secondary
	// hour type is not specified.
	//   "DRIVE_THROUGH" - The drive-through hour for banks, restaurants, or
	// pharmacies.
	//   "HAPPY_HOUR" - The happy hour.
	//   "DELIVERY" - The delivery hour.
	//   "TAKEOUT" - The takeout hour.
	//   "KITCHEN" - The kitchen hour.
	//   "BREAKFAST" - The breakfast hour.
	//   "LUNCH" - The lunch hour.
	//   "DINNER" - The dinner hour.
	//   "BRUNCH" - The brunch hour.
	//   "PICKUP" - The pickup hour.
	//   "ACCESS" - The access hours for storage places.
	//   "SENIOR_HOURS" - The special hours for seniors.
	//   "ONLINE_SERVICE_HOURS" - The online service hours.
	SecondaryHoursType string `json:"secondaryHoursType,omitempty"`

	// SpecialDays: Output only. 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. Set for current_opening_hours and
	// current_secondary_opening_hours if there are exceptional hours.
	SpecialDays []*GoogleMapsPlacesV1PlaceOpeningHoursSpecialDay `json:"specialDays,omitempty"`

	// WeekdayDescriptions: Output only. Localized strings describing the
	// opening hours of this place, one string for each day of the week.
	// Will be empty if the hours are unknown or could not be converted to
	// localized text. Example: "Sun: 18:00–06:00"
	WeekdayDescriptions []string `json:"weekdayDescriptions,omitempty"`

	// ForceSendFields is a list of field names (e.g. "OpenNow") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "OpenNow") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

GoogleMapsPlacesV1PlaceOpeningHours: Information about business hour of the place.

func (*GoogleMapsPlacesV1PlaceOpeningHours) MarshalJSON

func (s *GoogleMapsPlacesV1PlaceOpeningHours) MarshalJSON() ([]byte, error)

type GoogleMapsPlacesV1PlaceOpeningHoursPeriod

type GoogleMapsPlacesV1PlaceOpeningHoursPeriod struct {
	// Close: Output only. The time that the place starts to be closed.
	Close *GoogleMapsPlacesV1PlaceOpeningHoursPeriodPoint `json:"close,omitempty"`

	// Open: Output only. The time that the place starts to be open.
	Open *GoogleMapsPlacesV1PlaceOpeningHoursPeriodPoint `json:"open,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Close") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Close") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

GoogleMapsPlacesV1PlaceOpeningHoursPeriod: A period the place remains in open_now status.

func (*GoogleMapsPlacesV1PlaceOpeningHoursPeriod) MarshalJSON

type GoogleMapsPlacesV1PlaceOpeningHoursPeriodPoint

type GoogleMapsPlacesV1PlaceOpeningHoursPeriodPoint struct {
	// Date: Output only. Date in the local timezone for the place.
	Date *GoogleTypeDate `json:"date,omitempty"`

	// DateDeprecated: Output only. Date of the endpoint expressed in
	// RFC3339 format in the local timezone for the place. For example
	// 2010-12-31.
	DateDeprecated string `json:"dateDeprecated,omitempty"`

	// Day: Output only. A day of the week, as an integer in the range 0-6.
	// 0 is Sunday, 1 is Monday, etc.
	Day int64 `json:"day,omitempty"`

	// Hour: Output only. The hour in 2 digits. Ranges from 00 to 23.
	Hour int64 `json:"hour,omitempty"`

	// Minute: Output only. The minute in 2 digits. Ranges from 00 to 59.
	Minute int64 `json:"minute,omitempty"`

	// Truncated: Output only. Whether or not this endpoint was truncated.
	// Truncation occurs when the real hours are outside the times we are
	// willing to return hours between, so we truncate the hours back to
	// these boundaries. This ensures that at most 24 * 7 hours from
	// midnight of the day of the request are returned.
	Truncated bool `json:"truncated,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Date") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Date") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

GoogleMapsPlacesV1PlaceOpeningHoursPeriodPoint: Status changing points.

func (*GoogleMapsPlacesV1PlaceOpeningHoursPeriodPoint) MarshalJSON

type GoogleMapsPlacesV1PlaceOpeningHoursSpecialDay

type GoogleMapsPlacesV1PlaceOpeningHoursSpecialDay struct {
	// Date: Output only. The date of this special day.
	Date *GoogleTypeDate `json:"date,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Date") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Date") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

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.

func (*GoogleMapsPlacesV1PlaceOpeningHoursSpecialDay) MarshalJSON

type GoogleMapsPlacesV1PlacePlusCode

type GoogleMapsPlacesV1PlacePlusCode struct {
	// CompoundCode: Output only. Place's compound code, such as "33GV+HQ,
	// Ramberg, Norway", containing the suffix of the global code and
	// replacing the prefix with a formatted name of a reference entity.
	CompoundCode string `json:"compoundCode,omitempty"`

	// GlobalCode: Output only. Place's global (full) code, such as
	// "9FWM33GV+HQ", representing an 1/8000 by 1/8000 degree area (~14 by
	// 14 meters).
	GlobalCode string `json:"globalCode,omitempty"`

	// ForceSendFields is a list of field names (e.g. "CompoundCode") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "CompoundCode") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

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.

func (*GoogleMapsPlacesV1PlacePlusCode) MarshalJSON

func (s *GoogleMapsPlacesV1PlacePlusCode) MarshalJSON() ([]byte, error)

type GoogleMapsPlacesV1Review added in v0.135.0

type GoogleMapsPlacesV1Review struct {
	// AuthorAttribution: Output only. This review's author.
	AuthorAttribution *GoogleMapsPlacesV1AuthorAttribution `json:"authorAttribution,omitempty"`

	// OriginalText: Output only. The review text in its original language.
	OriginalText *GoogleTypeLocalizedText `json:"originalText,omitempty"`

	// PublishTime: Output only. Timestamp for the review.
	PublishTime string `json:"publishTime,omitempty"`

	// Rating: Output only. A number between 1.0 and 5.0, a.k.a. the number
	// of stars.
	Rating float64 `json:"rating,omitempty"`

	// RelativePublishTimeDescription: Output only. A string of formatted
	// recent time, expressing the review time relative to the current time
	// in a form appropriate for the language and country.
	RelativePublishTimeDescription string `json:"relativePublishTimeDescription,omitempty"`

	// Text: Output only. The localized text of the review.
	Text *GoogleTypeLocalizedText `json:"text,omitempty"`

	// ForceSendFields is a list of field names (e.g. "AuthorAttribution")
	// to unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "AuthorAttribution") to
	// include in API requests with the JSON null value. By default, fields
	// with empty values are omitted from API requests. However, any field
	// with an empty value appearing in NullFields will be sent to the
	// server as null. It is an error if a field in this list has a
	// non-empty value. This may be used to include null fields in Patch
	// requests.
	NullFields []string `json:"-"`
}

GoogleMapsPlacesV1Review: Information about a review of a place.

func (*GoogleMapsPlacesV1Review) MarshalJSON added in v0.135.0

func (s *GoogleMapsPlacesV1Review) MarshalJSON() ([]byte, error)

func (*GoogleMapsPlacesV1Review) UnmarshalJSON added in v0.135.0

func (s *GoogleMapsPlacesV1Review) UnmarshalJSON(data []byte) error

type GoogleMapsPlacesV1SearchTextRequest

type GoogleMapsPlacesV1SearchTextRequest struct {
	// IncludedType: The requested place type. Full list of types supported:
	// https://developers.google.com/places/supported_types. Only support
	// one included type.
	IncludedType string `json:"includedType,omitempty"`

	// LanguageCode: Place details will be displayed with the preferred
	// language if available. If the language code is unspecified or
	// unrecognized, place details of any language may be returned, with a
	// preference for English if such details exist. Current list of
	// supported languages:
	// https://developers.google.com/maps/faq#languagesupport.
	LanguageCode string `json:"languageCode,omitempty"`

	// Location: [Deprecated!]The region to search. Setting location would
	// usually yields better results. Recommended to set. This location
	// serves as a bias unless strict_restriction is set to true, which
	// turns the location to a strict restriction.
	Location *GoogleMapsPlacesV1SearchTextRequestLocation `json:"location,omitempty"`

	// LocationBias: The region to search. This location serves as a bias
	// which means results around given location might be returned. Cannot
	// be set along with location_restriction.
	LocationBias *GoogleMapsPlacesV1SearchTextRequestLocationBias `json:"locationBias,omitempty"`

	// LocationRestriction: The region to search. This location serves as a
	// restriction which means results outside given location will not be
	// returned. Cannot be set along with location_bias.
	LocationRestriction *GoogleMapsPlacesV1SearchTextRequestLocationRestriction `json:"locationRestriction,omitempty"`

	// MaxResultCount: Maximum number of results to return. It must be
	// between 1 and 20, inclusively. If the number is unset, it falls back
	// to the upper limit. If the number is set to negative or exceeds the
	// upper limit, an INVALID_ARGUMENT error is returned.
	MaxResultCount int64 `json:"maxResultCount,omitempty"`

	// MinRating: Filter out results whose average user rating is strictly
	// less than this limit. A valid value must be an float between 0 and 5
	// (inclusively) at a 0.5 cadence i.e. [0, 0.5, 1.0, ... , 5.0]
	// inclusively. This is to keep parity with LocalRefinement_UserRating.
	// The input rating will round up to the nearest 0.5(ceiling). For
	// instance, a rating of 0.6 will eliminate all results with a less than
	// 1.0 rating.
	MinRating float64 `json:"minRating,omitempty"`

	// OpenNow: Used to restrict the search to places that are open at a
	// specific time. open_now marks if a business is currently open.
	OpenNow bool `json:"openNow,omitempty"`

	// PriceLevels: Used to restrict the search to places that are marked as
	// certain price levels. Users can choose any combinations of price
	// levels. Default to select all price levels.
	//
	// Possible values:
	//   "PRICE_LEVEL_UNSPECIFIED" - Place price level is unspecified or
	// unknown.
	//   "PRICE_LEVEL_FREE" - Place provides free services.
	//   "PRICE_LEVEL_INEXPENSIVE" - Place provides inexpensive services.
	//   "PRICE_LEVEL_MODERATE" - Place provides moderately priced services.
	//   "PRICE_LEVEL_EXPENSIVE" - Place provides expensive services.
	//   "PRICE_LEVEL_VERY_EXPENSIVE" - Place provides very expensive
	// services.
	PriceLevels []string `json:"priceLevels,omitempty"`

	// PriceRange: [Deprecated!]Used to restrict the search to places that
	// are within a certain price range. This is on a scale of 0 to 4. Set a
	// minimum of 0 or set a maximum of 4 has no effect on the search
	// results. Min price is default to 0 and max price is default to 4.
	// Default value will be used if either min or max is unset.
	PriceRange *GoogleMapsPlacesV1Int32Range `json:"priceRange,omitempty"`

	// RankPreference: How results will be ranked in the response.
	//
	// Possible values:
	//   "RANK_PREFERENCE_UNSPECIFIED" - RankPreference value not set. Will
	// default to DISTANCE.
	//   "DISTANCE" - Ranks results by distance.
	//   "RELEVANCE" - Ranks results by relevance. Sort order determined by
	// normal ranking stack. See SortRefinement::RELEVANCE.
	RankPreference string `json:"rankPreference,omitempty"`

	// RegionCode: The Unicode country/region code (CLDR) of the location
	// where the request is coming from. It is used to display the place
	// details, like region-specific place name, if available. For more
	// information, see
	// http://www.unicode.org/reports/tr35/#unicode_region_subtag. Note that
	// 3-digit region codes are not currently supported.
	RegionCode string `json:"regionCode,omitempty"`

	// StrictTypeFiltering: Used to set strict type filtering for
	// included_type. If set to true, only results of the same type will be
	// returned. Default to false.
	StrictTypeFiltering bool `json:"strictTypeFiltering,omitempty"`

	// TextQuery: Required. The text query for textual search.
	TextQuery string `json:"textQuery,omitempty"`

	// ForceSendFields is a list of field names (e.g. "IncludedType") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "IncludedType") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

GoogleMapsPlacesV1SearchTextRequest: Request proto for SearchText.

func (*GoogleMapsPlacesV1SearchTextRequest) MarshalJSON

func (s *GoogleMapsPlacesV1SearchTextRequest) MarshalJSON() ([]byte, error)

func (*GoogleMapsPlacesV1SearchTextRequest) UnmarshalJSON

func (s *GoogleMapsPlacesV1SearchTextRequest) UnmarshalJSON(data []byte) error

type GoogleMapsPlacesV1SearchTextRequestLocation

type GoogleMapsPlacesV1SearchTextRequestLocation struct {
	// Rectangle: A rectangle box defined by northeast and southwest corner.
	Rectangle *GoogleGeoTypeViewport `json:"rectangle,omitempty"`

	// StrictRestriction: Make location field a strict restriction and
	// filter out POIs outside of the given location. If location type field
	// is unset this field will have no effect.
	StrictRestriction bool `json:"strictRestriction,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Rectangle") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Rectangle") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

GoogleMapsPlacesV1SearchTextRequestLocation: [Deprecated!]The region to search.

func (*GoogleMapsPlacesV1SearchTextRequestLocation) MarshalJSON

type GoogleMapsPlacesV1SearchTextRequestLocationBias

type GoogleMapsPlacesV1SearchTextRequestLocationBias struct {
	// Circle: A circle defined by center point and radius.
	Circle *GoogleMapsPlacesV1Circle `json:"circle,omitempty"`

	// Rectangle: A rectangle box defined by northeast and southwest corner.
	Rectangle *GoogleGeoTypeViewport `json:"rectangle,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Circle") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Circle") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

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

func (*GoogleMapsPlacesV1SearchTextRequestLocationBias) MarshalJSON

type GoogleMapsPlacesV1SearchTextRequestLocationRestriction

type GoogleMapsPlacesV1SearchTextRequestLocationRestriction struct {
	// Rectangle: A rectangle box defined by northeast and southwest corner.
	Rectangle *GoogleGeoTypeViewport `json:"rectangle,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Rectangle") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Rectangle") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

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

func (*GoogleMapsPlacesV1SearchTextRequestLocationRestriction) MarshalJSON

type GoogleMapsPlacesV1SearchTextResponse

type GoogleMapsPlacesV1SearchTextResponse struct {
	// Places: A list of places that meet the user's text search criteria.
	Places []*GoogleMapsPlacesV1Place `json:"places,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Places") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Places") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

GoogleMapsPlacesV1SearchTextResponse: Response proto for SearchText.

func (*GoogleMapsPlacesV1SearchTextResponse) MarshalJSON

func (s *GoogleMapsPlacesV1SearchTextResponse) MarshalJSON() ([]byte, error)

type GoogleTypeDate

type GoogleTypeDate struct {
	// Day: Day of a month. Must be from 1 to 31 and valid for the year and
	// month, or 0 to specify a year by itself or a year and month where the
	// day isn't significant.
	Day int64 `json:"day,omitempty"`

	// Month: Month of a year. Must be from 1 to 12, or 0 to specify a year
	// without a month and day.
	Month int64 `json:"month,omitempty"`

	// Year: Year of the date. Must be from 1 to 9999, or 0 to specify a
	// date without a year.
	Year int64 `json:"year,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Day") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Day") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

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

func (*GoogleTypeDate) MarshalJSON

func (s *GoogleTypeDate) MarshalJSON() ([]byte, error)

type GoogleTypeLatLng

type GoogleTypeLatLng struct {
	// Latitude: The latitude in degrees. It must be in the range [-90.0,
	// +90.0].
	Latitude float64 `json:"latitude,omitempty"`

	// Longitude: The longitude in degrees. It must be in the range [-180.0,
	// +180.0].
	Longitude float64 `json:"longitude,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Latitude") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Latitude") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

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.

func (*GoogleTypeLatLng) MarshalJSON

func (s *GoogleTypeLatLng) MarshalJSON() ([]byte, error)

func (*GoogleTypeLatLng) UnmarshalJSON

func (s *GoogleTypeLatLng) UnmarshalJSON(data []byte) error

type GoogleTypeLocalizedText

type GoogleTypeLocalizedText struct {
	// LanguageCode: The text's BCP-47 language code, such as "en-US" or
	// "sr-Latn". For more information, see
	// http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
	LanguageCode string `json:"languageCode,omitempty"`

	// Text: Localized string in the language corresponding to
	// `language_code' below.
	Text string `json:"text,omitempty"`

	// ForceSendFields is a list of field names (e.g. "LanguageCode") to
	// unconditionally include in API requests. By default, fields with
	// empty or default values are omitted from API requests. However, any
	// non-pointer, non-interface field appearing in ForceSendFields will be
	// sent to the server regardless of whether the field is empty or not.
	// This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "LanguageCode") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

GoogleTypeLocalizedText: Localized variant of a text in a particular language.

func (*GoogleTypeLocalizedText) MarshalJSON

func (s *GoogleTypeLocalizedText) MarshalJSON() ([]byte, error)

type PlacesSearchTextCall

type PlacesSearchTextCall struct {
	// contains filtered or unexported fields
}

func (*PlacesSearchTextCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*PlacesSearchTextCall) Do

Do executes the "places.places.searchText" call. Exactly one of *GoogleMapsPlacesV1SearchTextResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleMapsPlacesV1SearchTextResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*PlacesSearchTextCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*PlacesSearchTextCall) Header

func (c *PlacesSearchTextCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type PlacesService

type PlacesService struct {
	// contains filtered or unexported fields
}

func NewPlacesService

func NewPlacesService(s *Service) *PlacesService

func (*PlacesService) SearchText

func (r *PlacesService) SearchText(googlemapsplacesv1searchtextrequest *GoogleMapsPlacesV1SearchTextRequest) *PlacesSearchTextCall

SearchText: Text query based place search.

type Service

type Service struct {
	BasePath  string // API endpoint base URL
	UserAgent string // optional additional User-Agent fragment

	Text *TextService

	Places *PlacesService
	// contains filtered or unexported fields
}

func New deprecated

func New(client *http.Client) (*Service, error)

New creates a new Service. It uses the provided http.Client for requests.

Deprecated: please use NewService instead. To provide a custom HTTP client, use option.WithHTTPClient. If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.

func NewService

func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error)

NewService creates a new Service.

type TextSearchCall

type TextSearchCall struct {
	// contains filtered or unexported fields
}

func (*TextSearchCall) Context

func (c *TextSearchCall) Context(ctx context.Context) *TextSearchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TextSearchCall) Do

Do executes the "places.Text.search" call. Exactly one of *GoogleMapsPlacesV1SearchTextResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleMapsPlacesV1SearchTextResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TextSearchCall) Fields

func (c *TextSearchCall) Fields(s ...googleapi.Field) *TextSearchCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*TextSearchCall) Header

func (c *TextSearchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type TextService

type TextService struct {
	// contains filtered or unexported fields
}

func NewTextService

func NewTextService(s *Service) *TextService

func (*TextService) Search

func (r *TextService) Search(googlemapsplacesv1searchtextrequest *GoogleMapsPlacesV1SearchTextRequest) *TextSearchCall

Search: Text query based place search.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL