LatLng Class |
Namespace: DotNetCoords
The LatLng type exposes the following members.
Name | Description | |
---|---|---|
![]() | LatLng(LatLng) |
Initializes a new instance of the LatLng class based on another LatLng instance.
|
![]() | LatLng(Double, Double) |
Create a new LatLng object to represent a latitude/longitude pair using the
WGS84 datum.
|
![]() | LatLng(Double, Double, Double) |
Create a new LatLng object to represent a latitude/longitude pair using the
WGS84 datum.
|
![]() | LatLng(Double, Double, Double, Datum) |
Create a new LatLng object to represent a latitude/longitude pair using the
specified datum.
|
![]() | LatLng(Int32, Int32, Double, NorthSouth, Int32, Int32, Double, EastWest) |
Create a new LatLng object to represent a latitude/longitude pair using the
WGS84 datum.
|
![]() | LatLng(Int32, Int32, Double, NorthSouth, Int32, Int32, Double, EastWest, Double) |
Create a new LatLng object to represent a latitude/longitude pair using the
WGS84 datum.
|
![]() | LatLng(Int32, Int32, Double, NorthSouth, Int32, Int32, Double, EastWest, Double, Datum) |
Create a new LatLng object to represent a latitude/longitude pair using the
specified datum.
|
Name | Description | |
---|---|---|
![]() | Datum |
Gets the datum.
|
![]() | Height |
Gets the height.
|
![]() | Latitude |
Gets the latitude in degrees.
|
![]() | LatitudeDegrees |
Gets the latitude degrees.
|
![]() | LatitudeMinutes |
Gets the latitude minutes.
|
![]() | LatitudeSeconds |
Gets the latitude seconds.
|
![]() | Longitude |
Gets the longitude in degrees.
|
![]() | LongitudeDegrees |
Gets the longitude degrees.
|
![]() | LongitudeMinutes |
Gets the longitude minutes.
|
![]() | LongitudeSeconds |
Gets the longitude seconds.
|
Name | Description | |
---|---|---|
![]() | Bearing |
Gets the bearing in degrees between two LatLng objects
|
![]() | Distance |
Calculate the surface distance in kilometres from this LatLng to the given
LatLng.
|
![]() | DistanceMiles |
Calculate the surface distance in miles from this LatLng to the given
LatLng.
|
![]() | Equals | (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() | IsValidLatitude |
Determines whether the specified latitude is valid.
|
![]() ![]() | IsValidLongitude |
Determines whether the specified longitude is valid longitude.
|
![]() | ToDatum |
Converts this LatLng to another datum.
|
![]() | ToDMSString |
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.
|
![]() | ToMGRSRef |
Convert this latitude and longitude to an MGRS reference.
|
![]() | ToOSGB36 |
Convert this LatLng to the OSGB36 datum using an approximate Helmert transformation.
Equivalent to ToDatum(OSGB36Datum.Instance) |
![]() | ToOSRef |
Convert this latitude and longitude into an OSGB (Ordnance Survey of Great
Britain) grid reference.
|
![]() | ToString |
Returns a String that represents the current LatLng object.
(Overrides ObjectToString.) |
![]() | ToUtmRef |
Convert this latitude and longitude to a UTM reference.
|
![]() | ToWGS84 |
Convert this LatLng to the WGS84 datum using an approximate Helmert transformation.
Equivalent to ToDatum(WGS84Datum.Instance) |