Class GoogleMapsPlacesV1SearchNearbyRequest
Request proto for Search Nearby.
Implements
Inherited Members
Namespace: Google.Apis.MapsPlaces.v1.Data
Assembly: Google.Apis.MapsPlaces.v1.dll
Syntax
public class GoogleMapsPlacesV1SearchNearbyRequest : IDirectResponseSchema
Properties
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
ExcludedPrimaryTypes
Excluded primary Place type (e.g. "restaurant" or "gas_station") from https://developers.google.com/maps/documentation/places/web-service/place-types. Up to 50 types from Table A may be specified. If there are any conflicting primary types, i.e. a type appears in both included_primary_types and excluded_primary_types, an INVALID_ARGUMENT error is returned. If a Place type is specified with multiple type restrictions, only places that satisfy all of the restrictions are returned. For example, if we have {included_types = ["restaurant"], excluded_primary_types = ["restaurant"]}, the returned places provide "restaurant" related services but do not operate primarily as "restaurants".
Declaration
[JsonProperty("excludedPrimaryTypes")]
public virtual IList<string> ExcludedPrimaryTypes { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |
ExcludedTypes
Excluded Place type (eg, "restaurant" or "gas_station") from https://developers.google.com/maps/documentation/places/web-service/place-types. Up to 50 types from Table A may be specified. If the client provides both included_types (e.g. restaurant) and excluded_types (e.g. cafe), then the response should include places that are restaurant but not cafe. The response includes places that match at least one of the included_types and none of the excluded_types. If there are any conflicting types, i.e. a type appears in both included_types and excluded_types, an INVALID_ARGUMENT error is returned. If a Place type is specified with multiple type restrictions, only places that satisfy all of the restrictions are returned. For example, if we have {included_types = ["restaurant"], excluded_primary_types = ["restaurant"]}, the returned places provide "restaurant" related services but do not operate primarily as "restaurants".
Declaration
[JsonProperty("excludedTypes")]
public virtual IList<string> ExcludedTypes { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |
IncludedPrimaryTypes
Included primary Place type (e.g. "restaurant" or "gas_station") from https://developers.google.com/maps/documentation/places/web-service/place-types. A place can only have a single primary type from the supported types table associated with it. Up to 50 types from Table A may be specified. If there are any conflicting primary types, i.e. a type appears in both included_primary_types and excluded_primary_types, an INVALID_ARGUMENT error is returned. If a Place type is specified with multiple type restrictions, only places that satisfy all of the restrictions are returned. For example, if we have {included_types = ["restaurant"], excluded_primary_types = ["restaurant"]}, the returned places provide "restaurant" related services but do not operate primarily as "restaurants".
Declaration
[JsonProperty("includedPrimaryTypes")]
public virtual IList<string> IncludedPrimaryTypes { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |
IncludedTypes
Included Place type (eg, "restaurant" or "gas_station") from https://developers.google.com/maps/documentation/places/web-service/place-types. Up to 50 types from Table A may be specified. If there are any conflicting types, i.e. a type appears in both included_types and excluded_types, an INVALID_ARGUMENT error is returned. If a Place type is specified with multiple type restrictions, only places that satisfy all of the restrictions are returned. For example, if we have {included_types = ["restaurant"], excluded_primary_types = ["restaurant"]}, the returned places provide "restaurant" related services but do not operate primarily as "restaurants".
Declaration
[JsonProperty("includedTypes")]
public virtual IList<string> IncludedTypes { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |
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.
Declaration
[JsonProperty("languageCode")]
public virtual string LanguageCode { get; set; }
Property Value
Type | Description |
---|---|
string |
LocationRestriction
Required. The region to search.
Declaration
[JsonProperty("locationRestriction")]
public virtual GoogleMapsPlacesV1SearchNearbyRequestLocationRestriction LocationRestriction { get; set; }
Property Value
Type | Description |
---|---|
GoogleMapsPlacesV1SearchNearbyRequestLocationRestriction |
MaxResultCount
Maximum number of results to return. It must be between 1 and 20 (default), 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.
Declaration
[JsonProperty("maxResultCount")]
public virtual int? MaxResultCount { get; set; }
Property Value
Type | Description |
---|---|
int? |
RankPreference
How results will be ranked in the response.
Declaration
[JsonProperty("rankPreference")]
public virtual string RankPreference { get; set; }
Property Value
Type | Description |
---|---|
string |
RegionCode
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
[JsonProperty("regionCode")]
public virtual string RegionCode { get; set; }
Property Value
Type | Description |
---|---|
string |
RoutingParameters
Optional. Parameters that affect the routing to the search results.
Declaration
[JsonProperty("routingParameters")]
public virtual GoogleMapsPlacesV1RoutingParameters RoutingParameters { get; set; }
Property Value
Type | Description |
---|---|
GoogleMapsPlacesV1RoutingParameters |