Show / Hide Table of Contents

Class PlacesResource.GetRequest

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

Inheritance
object
ClientServiceRequest
ClientServiceRequest<GoogleMapsPlacesV1Place>
MapsPlacesBaseServiceRequest<GoogleMapsPlacesV1Place>
PlacesResource.GetRequest
Implements
IClientServiceRequest<GoogleMapsPlacesV1Place>
IClientServiceRequest
Inherited Members
MapsPlacesBaseServiceRequest<GoogleMapsPlacesV1Place>.Xgafv
MapsPlacesBaseServiceRequest<GoogleMapsPlacesV1Place>.AccessToken
MapsPlacesBaseServiceRequest<GoogleMapsPlacesV1Place>.Alt
MapsPlacesBaseServiceRequest<GoogleMapsPlacesV1Place>.Callback
MapsPlacesBaseServiceRequest<GoogleMapsPlacesV1Place>.Fields
MapsPlacesBaseServiceRequest<GoogleMapsPlacesV1Place>.Key
MapsPlacesBaseServiceRequest<GoogleMapsPlacesV1Place>.OauthToken
MapsPlacesBaseServiceRequest<GoogleMapsPlacesV1Place>.PrettyPrint
MapsPlacesBaseServiceRequest<GoogleMapsPlacesV1Place>.QuotaUser
MapsPlacesBaseServiceRequest<GoogleMapsPlacesV1Place>.UploadType
MapsPlacesBaseServiceRequest<GoogleMapsPlacesV1Place>.UploadProtocol
ClientServiceRequest<GoogleMapsPlacesV1Place>.Execute()
ClientServiceRequest<GoogleMapsPlacesV1Place>.ExecuteAsStream()
ClientServiceRequest<GoogleMapsPlacesV1Place>.ExecuteAsync()
ClientServiceRequest<GoogleMapsPlacesV1Place>.ExecuteAsync(CancellationToken)
ClientServiceRequest<GoogleMapsPlacesV1Place>.ExecuteAsStreamAsync()
ClientServiceRequest<GoogleMapsPlacesV1Place>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<GoogleMapsPlacesV1Place>.CreateRequest(bool?)
ClientServiceRequest<GoogleMapsPlacesV1Place>.GenerateRequestUri()
ClientServiceRequest<GoogleMapsPlacesV1Place>.GetBody()
ClientServiceRequest<GoogleMapsPlacesV1Place>.GetDefaultETagAction(string)
ClientServiceRequest<GoogleMapsPlacesV1Place>.ETagAction
ClientServiceRequest<GoogleMapsPlacesV1Place>.ModifyRequest
ClientServiceRequest<GoogleMapsPlacesV1Place>.ValidateParameters
ClientServiceRequest<GoogleMapsPlacesV1Place>.ApiVersion
ClientServiceRequest<GoogleMapsPlacesV1Place>.RequestParameters
ClientServiceRequest<GoogleMapsPlacesV1Place>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.MapsPlaces.v1
Assembly: Google.Apis.MapsPlaces.v1.dll
Syntax
public class PlacesResource.GetRequest : MapsPlacesBaseServiceRequest<GoogleMapsPlacesV1Place>, IClientServiceRequest<GoogleMapsPlacesV1Place>, IClientServiceRequest

Constructors

GetRequest(IClientService, string)

Constructs a new Get request.

Declaration
public GetRequest(IClientService service, string name)
Parameters
Type Name Description
IClientService service
string name

Properties

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<GoogleMapsPlacesV1Place>.HttpMethod

LanguageCode

Optional. Place details will be displayed with the preferred language if available. Current list of supported languages: https://developers.google.com/maps/faq#languagesupport.

Declaration
[RequestParameter("languageCode", RequestParameterType.Query)]
public virtual string LanguageCode { get; set; }
Property Value
Type Description
string

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<GoogleMapsPlacesV1Place>.MethodName

Name

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

Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type Description
string

RegionCode

Optional. The Unicode country/region code (CLDR) of the location where the request is coming from. This parameter is used to display the place details, like region-specific place name, if available. The parameter can affect results based on applicable law. For more information, see https://www.unicode.org/cldr/charts/latest/supplemental/territory_language_information.html. Note that 3-digit region codes are not currently supported.

Declaration
[RequestParameter("regionCode", RequestParameterType.Query)]
public virtual string RegionCode { get; set; }
Property Value
Type Description
string

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<GoogleMapsPlacesV1Place>.RestPath

SessionToken

Optional. A string which identifies an Autocomplete session for billing purposes. Must be a URL and filename safe base64 string with at most 36 ASCII characters in length. Otherwise an INVALID_ARGUMENT error is returned. The session begins when the user starts typing a query, and concludes when they select a place and a call to Place Details or Address Validation is made. Each session can have multiple queries, followed by one Place Details or Address Validation request. The credentials used for each request within a session must belong to the same Google Cloud Console project. Once a session has concluded, the token is no longer valid; your app must generate a fresh token for each session. If the session_token parameter is omitted, or if you reuse a session token, the session is charged as if no session token was provided (each request is billed separately). We recommend the following guidelines: * Use session tokens for all Place Autocomplete calls. * Generate a fresh token for each session. Using a version 4 UUID is recommended. * Ensure that the credentials used for all Place Autocomplete, Place Details, and Address Validation requests within a session belong to the same Cloud Console project. * Be sure to pass a unique session token for each new session. Using the same token for more than one session will result in each request being billed individually.

Declaration
[RequestParameter("sessionToken", RequestParameterType.Query)]
public virtual string SessionToken { get; set; }
Property Value
Type Description
string

Methods

InitParameters()

Initializes Get parameter list.

Declaration
protected override void InitParameters()
Overrides
MapsPlacesBaseServiceRequest<GoogleMapsPlacesV1Place>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX