The LatLng type exposes the following members.

Collapse imageMethods

  NameDescription
Public methodDistance
Calculate the surface distance in kilometres from this LatLng to the given LatLng.
Public methodDistanceMiles
Calculate the surface distance in miles from this LatLng to the given LatLng.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToDatum
Converts this LatLng to another datum.
Public methodToDMSString
Return a String representation of this LatLng object in degrees-minutes-seconds format. The returned format will be like this: DD MM SS.SSS N DD MM SS.SSS E where DD is the number of degrees, MM is the number of minutes, SS.SSS is the number of seconds, N is either N or S to indicate north or south of the equator and E is either E or W to indicate east or west of the prime meridian.
Public methodToMGRSRef
Convert this latitude and longitude to an MGRS reference.
Public methodToOSGB36
Convert this LatLng from the WGS84 datum to the OSGB36 datum using an approximate Helmert transformation.
Public methodToOSRef
Convert this latitude and longitude into an OSGB (Ordnance Survey of Great Britain) grid reference.
Public methodToString
Returns a String that represents the current LatLng object.
(Overrides Object..::.ToString()()().)
Public methodToUtmRef
Convert this latitude and longitude to a UTM reference.
Public methodToWGS84
Convert this LatLng from the OSGB36 datum to the WGS84 datum using an approximate Helmert transformation.

Collapse imageSee Also