Class SearchTextRequest
Request proto for SearchText.
Implements
Namespace: Google.Maps.Places.V1
Assembly: Google.Maps.Places.V1.dll
Syntax
public sealed class SearchTextRequest : IMessage<SearchTextRequest>, IEquatable<SearchTextRequest>, IDeepCloneable<SearchTextRequest>, IBufferMessage, IMessage
Constructors
SearchTextRequest()
Declaration
public SearchTextRequest()
SearchTextRequest(SearchTextRequest)
Declaration
public SearchTextRequest(SearchTextRequest other)
Parameters
Type | Name | Description |
---|---|---|
SearchTextRequest | other |
Properties
EvOptions
Optional. Set the searchable EV options of a place search request.
Declaration
public SearchTextRequest.Types.EVOptions EvOptions { get; set; }
Property Value
Type | Description |
---|---|
SearchTextRequest.Types.EVOptions |
IncludePureServiceAreaBusinesses
Optional. Include pure service area businesses if the field is set to true.
Pure service area business is a business that visits or delivers to
customers directly but does not serve customers at their business address.
For example, businesses like cleaning services or plumbers. Those
businesses do not have a physical address or location on Google Maps.
Places will not return fields including location
, plus_code
, and other
location related fields for these businesses.
Declaration
public bool IncludePureServiceAreaBusinesses { get; set; }
Property Value
Type | Description |
---|---|
bool |
IncludedType
The requested place type. Full list of types supported: https://developers.google.com/maps/documentation/places/web-service/place-types. Only support one included type.
Declaration
public string IncludedType { get; set; }
Property Value
Type | Description |
---|---|
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
public string LanguageCode { get; set; }
Property Value
Type | Description |
---|---|
string |
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.
Declaration
public SearchTextRequest.Types.LocationBias LocationBias { get; set; }
Property Value
Type | Description |
---|---|
SearchTextRequest.Types.LocationBias |
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.
Declaration
public SearchTextRequest.Types.LocationRestriction LocationRestriction { get; set; }
Property Value
Type | Description |
---|---|
SearchTextRequest.Types.LocationRestriction |
MaxResultCount
Maximum number of results to return. It must be between 1 and 20, inclusively. The default is 20. 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
public int MaxResultCount { get; set; }
Property Value
Type | Description |
---|---|
int |
MinRating
Filter out results whose average user rating is strictly less than this limit. A valid value must be a float between 0 and 5 (inclusively) at a 0.5 cadence i.e. [0, 0.5, 1.0, ... , 5.0] inclusively. 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.
Declaration
public double MinRating { get; set; }
Property Value
Type | Description |
---|---|
double |
OpenNow
Used to restrict the search to places that are currently open. The default is false.
Declaration
public bool OpenNow { get; set; }
Property Value
Type | Description |
---|---|
bool |
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.
Declaration
public RepeatedField<PriceLevel> PriceLevels { get; }
Property Value
Type | Description |
---|---|
RepeatedField<PriceLevel> |
RankPreference
How results will be ranked in the response.
Declaration
public SearchTextRequest.Types.RankPreference RankPreference { get; set; }
Property Value
Type | Description |
---|---|
SearchTextRequest.Types.RankPreference |
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
public string RegionCode { get; set; }
Property Value
Type | Description |
---|---|
string |
RoutingParameters
Optional. Additional parameters for routing to results.
Declaration
public RoutingParameters RoutingParameters { get; set; }
Property Value
Type | Description |
---|---|
RoutingParameters |
SearchAlongRouteParameters
Optional. Additional parameters proto for searching along a route.
Declaration
public SearchTextRequest.Types.SearchAlongRouteParameters SearchAlongRouteParameters { get; set; }
Property Value
Type | Description |
---|---|
SearchTextRequest.Types.SearchAlongRouteParameters |
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.
Declaration
public bool StrictTypeFiltering { get; set; }
Property Value
Type | Description |
---|---|
bool |
TextQuery
Required. The text query for textual search.
Declaration
public string TextQuery { get; set; }
Property Value
Type | Description |
---|---|
string |