Table of Contents

Class PlaceDetailsRequest

Namespace
GoogleMapsApi.Entities.PlacesNew.Request
Assembly
GoogleMapsApi.dll

Request for the Places API (New) Place Details endpoint (GET https://places.googleapis.com/v1/places/{placeId}). Modern replacement for the legacy Place Details API; returns a bare Place.

public sealed class PlaceDetailsRequest : MapsBaseRequest
Inheritance
PlaceDetailsRequest
Inherited Members

Remarks

Requires a field mask. Unlike the search endpoints, Place Details uses top-level field paths (no places. prefix). See https://developers.google.com/maps/documentation/places/web-service/place-details.

Fields

DefaultFieldMask

Default FieldMask covering a commonly useful set of place fields (top-level paths).

public const string DefaultFieldMask = "id,displayName,formattedAddress,location,rating,types,googleMapsUri"

Field Value

string

Properties

FieldMask

Comma-separated response field mask using top-level paths. Required by the Places API (New). Passed in the URL as $fields.

public string FieldMask { get; set; }

Property Value

string

LanguageCode

BCP-47 language code for the response (e.g. "en").

public string? LanguageCode { get; set; }

Property Value

string

PlaceId

Place ID of the place to fetch. Required.

public string PlaceId { get; set; }

Property Value

string

RegionCode

Unicode CLDR region code used for formatting (e.g. "US").

public string? RegionCode { get; set; }

Property Value

string

SessionToken

Autocomplete session token, to bill this details call as part of a session.

public string? SessionToken { get; set; }

Property Value

string

Methods

GetUri()

Builds the absolute request URI, including scheme, base URL, and serialized query-string parameters.

public override Uri GetUri()

Returns

Uri

The fully composed URI to send to the Google Maps API.