Class AddressDescriptor.Types.Landmark
Basic landmark information and the landmark's relationship with the target location.
Landmarks are prominent places that can be used to describe a location.
Implements
Namespace: Google.Maps.Places.V1
Assembly: Google.Maps.Places.V1.dll
Syntax
public sealed class AddressDescriptor.Types.Landmark : IMessage<AddressDescriptor.Types.Landmark>, IEquatable<AddressDescriptor.Types.Landmark>, IDeepCloneable<AddressDescriptor.Types.Landmark>, IBufferMessage, IMessage
Constructors
Landmark()
Declaration
public Landmark()
Landmark(Landmark)
Declaration
public Landmark(AddressDescriptor.Types.Landmark other)
Parameters
Type | Name | Description |
---|---|---|
AddressDescriptor.Types.Landmark | other |
Properties
DisplayName
The landmark's display name.
Declaration
public LocalizedText DisplayName { get; set; }
Property Value
Type | Description |
---|---|
LocalizedText |
HasTravelDistanceMeters
Gets whether the "travel_distance_meters" field is set
Declaration
public bool HasTravelDistanceMeters { get; }
Property Value
Type | Description |
---|---|
bool |
Name
The landmark's resource name.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
PlaceId
The landmark's place id.
Declaration
public string PlaceId { get; set; }
Property Value
Type | Description |
---|---|
string |
PlaceName
Declaration
public PlaceName PlaceName { get; set; }
Property Value
Type | Description |
---|---|
PlaceName |
SpatialRelationship
Defines the spatial relationship between the target location and the landmark.
Declaration
public AddressDescriptor.Types.Landmark.Types.SpatialRelationship SpatialRelationship { get; set; }
Property Value
Type | Description |
---|---|
AddressDescriptor.Types.Landmark.Types.SpatialRelationship |
StraightLineDistanceMeters
The straight line distance, in meters, between the center point of the
target and the center point of the landmark. In some situations, this
value can be longer than travel_distance_meters
.
Declaration
public float StraightLineDistanceMeters { get; set; }
Property Value
Type | Description |
---|---|
float |
TravelDistanceMeters
The travel distance, in meters, along the road network from the target to the landmark, if known. This value does not take into account the mode of transportation, such as walking, driving, or biking.
Declaration
public float TravelDistanceMeters { get; set; }
Property Value
Type | Description |
---|---|
float |
Types_
A set of type tags for this landmark. For a complete list of possible values, see https://developers.google.com/maps/documentation/places/web-service/place-types.
Declaration
public RepeatedField<string> Types_ { get; }
Property Value
Type | Description |
---|---|
RepeatedField<string> |