public sealed class LatLng : IMessage<LatLng>, IEquatable<LatLng>, IDeepCloneable<LatLng>, IBufferMessage, IMessage
An object that represents a latitude/longitude pair. This is expressed as a
pair of doubles to represent degrees latitude and degrees longitude. Unless
specified otherwise, this must conform to the
<a href="WGS84">http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84standard</a>. Values must be within normalized ranges.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eLatLng\u003c/code\u003e class represents a latitude/longitude pair using double values for degrees, adhering to the WGS84 standard.\u003c/p\u003e\n"],["\u003cp\u003eIt implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, indicating its capabilities for message handling, equality checks, deep cloning, and buffer operations.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides constructors to create \u003ccode\u003eLatLng\u003c/code\u003e objects, either empty or based on another \u003ccode\u003eLatLng\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eLatLng\u003c/code\u003e has properties for \u003ccode\u003eLatitude\u003c/code\u003e and \u003ccode\u003eLongitude\u003c/code\u003e, which store the respective degree values within their normalized ranges of [-90.0, +90.0] and [-180.0, +180.0].\u003c/p\u003e\n"],["\u003cp\u003eThe class contains methods for object comparison, deep cloning, merging with other LatLng objects, and calculating the message size in protocol buffer format, and writing to a coded stream.\u003c/p\u003e\n"]]],[],null,["# Class LatLng (2.17.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.17.0 (latest)](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Type.LatLng)\n- [2.15.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.15.0/Google.Type.LatLng)\n- [2.10.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.10.0/Google.Type.LatLng)\n- [2.2.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.2.0/Google.Type.LatLng) \n\n public sealed class LatLng : IMessage\u003cLatLng\u003e, IEquatable\u003cLatLng\u003e, IDeepCloneable\u003cLatLng\u003e, IBufferMessage, IMessage\n\nAn object that represents a latitude/longitude pair. This is expressed as a\npair of doubles to represent degrees latitude and degrees longitude. Unless\nspecified otherwise, this must conform to the\n\\\u003ca href=\"[http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf\"\\\u003eWGS84](http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf\"\u003eWGS84)\nstandard\\\u003c/a\\\u003e. Values must be within normalized ranges. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e LatLng \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[LatLng](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Type.LatLng), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[LatLng](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Type.LatLng), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[LatLng](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Type.LatLng), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals)\n\nNamespace\n---------\n\n[Google.Type](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Type)\n\nAssembly\n--------\n\nGoogle.Api.CommonProtos.dll\n\nConstructors\n------------\n\n### LatLng()\n\n public LatLng()\n\n### LatLng(LatLng)\n\n public LatLng(LatLng other)\n\nFields\n------\n\n### LatitudeFieldNumber\n\n public const int LatitudeFieldNumber = 1\n\nField number for the \"latitude\" field.\n\n### LongitudeFieldNumber\n\n public const int LongitudeFieldNumber = 2\n\nField number for the \"longitude\" field.\n\nProperties\n----------\n\n### Descriptor\n\n public static MessageDescriptor Descriptor { get; }\n\n### Latitude\n\n public double Latitude { get; set; }\n\nThe latitude in degrees. It must be in the range \\[-90.0, +90.0\\].\n\n### Longitude\n\n public double Longitude { get; set; }\n\nThe longitude in degrees. It must be in the range \\[-180.0, +180.0\\].\n\n### Parser\n\n public static MessageParser\u003cLatLng\u003e Parser { get; }\n\nMethods\n-------\n\n### CalculateSize()\n\n public int CalculateSize()\n\n### Clone()\n\n public LatLng Clone()\n\n### Equals(LatLng)\n\n public bool Equals(LatLng other)\n\n### Equals(object)\n\n public override bool Equals(object other)\n\n**Overrides** \n[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object))\n\n### GetHashCode()\n\n public override int GetHashCode()\n\n**Overrides** \n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode)\n\n### MergeFrom(CodedInputStream)\n\n public void MergeFrom(CodedInputStream input)\n\n### MergeFrom(LatLng)\n\n public void MergeFrom(LatLng other)\n\n### ToString()\n\n public override string ToString()\n\n**Overrides** \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\n### WriteTo(CodedOutputStream)\n\n public void WriteTo(CodedOutputStream output)"]]