Class SearchTextRequest.Types.LocationRestriction
The region to search. This location serves as a restriction which means
results outside given location will not be returned.
Inheritance
SearchTextRequest.Types.LocationRestriction
Assembly: Google.Maps.Places.V1.dll
Syntax
public sealed class SearchTextRequest.Types.LocationRestriction : IMessage<SearchTextRequest.Types.LocationRestriction>, IEquatable<SearchTextRequest.Types.LocationRestriction>, IDeepCloneable<SearchTextRequest.Types.LocationRestriction>, IBufferMessage, IMessage
Constructors
LocationRestriction()
Declaration
public LocationRestriction()
LocationRestriction(LocationRestriction)
Declaration
public LocationRestriction(SearchTextRequest.Types.LocationRestriction other)
Parameters
Properties
Rectangle
A rectangle box defined by northeast and southwest corner.
rectangle.high()
must be the northeast point of the rectangle
viewport. rectangle.low()
must be the southwest point of the
rectangle viewport. rectangle.low().latitude()
cannot be greater than
rectangle.high().latitude()
. This will result in an empty latitude
range. A rectangle viewport cannot be wider than 180 degrees.
Declaration
public Viewport Rectangle { get; set; }
Property Value
Type |
Description |
Viewport |
|
TypeCase
Declaration
public SearchTextRequest.Types.LocationRestriction.TypeOneofCase TypeCase { get; }
Property Value