Class LatLng
An object representing a latitude/longitude pair. This is expressed as a pair
of doubles representing degrees latitude and degrees longitude. Unless
specified otherwise, this must conform to the
<a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
standard</a>. Values must be within normalized ranges.
Inheritance
System.Object
LatLng
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Google.Api.CommonProtos.dll
Syntax
public sealed class LatLng : IMessage<LatLng>, IMessage, IEquatable<LatLng>, IDeepCloneable<LatLng>
Constructors
LatLng()
Declaration
LatLng(LatLng)
Declaration
public LatLng(LatLng other)
Parameters
Type |
Name |
Description |
LatLng |
other |
|
Fields
LatitudeFieldNumber
Field number for the "latitude" field.
Declaration
public const int LatitudeFieldNumber = 1
Field Value
Type |
Description |
System.Int32 |
|
LongitudeFieldNumber
Field number for the "longitude" field.
Declaration
public const int LongitudeFieldNumber = 2
Field Value
Type |
Description |
System.Int32 |
|
Properties
Descriptor
Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
Latitude
The latitude in degrees. It must be in the range [-90.0, +90.0].
Declaration
public double Latitude { get; set; }
Property Value
Type |
Description |
System.Double |
|
Longitude
The longitude in degrees. It must be in the range [-180.0, +180.0].
Declaration
public double Longitude { get; set; }
Property Value
Type |
Description |
System.Double |
|
Parser
Declaration
public static MessageParser<LatLng> Parser { get; }
Property Value
Methods
CalculateSize()
Declaration
public int CalculateSize()
Returns
Type |
Description |
System.Int32 |
|
Implements
Clone()
Declaration
Returns
Implements
Equals(LatLng)
Declaration
public bool Equals(LatLng other)
Parameters
Type |
Name |
Description |
LatLng |
other |
|
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IEquatable<T>.Equals(T)
Equals(Object)
Declaration
public override bool Equals(object other)
Parameters
Type |
Name |
Description |
System.Object |
other |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Implements
MergeFrom(LatLng)
Declaration
public void MergeFrom(LatLng other)
Parameters
Type |
Name |
Description |
LatLng |
other |
|
Implements
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
WriteTo(CodedOutputStream)
Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Implements
Explicit Interface Implementations
IMessage.Descriptor
Declaration
MessageDescriptor IMessage.Descriptor { get; }
Returns
Implements