Create a new LatLng object to represent a latitude/longitude pair using the WGS84 datum.

Namespace:  DotNetCoords
Assembly:  DotNetCoords (in DotNetCoords.dll) Version: 1.0.0.1 (1.0.0.1)

Syntax

C#
public LatLng(
	int latitudeDegrees,
	int latitudeMinutes,
	double latitudeSeconds,
	NorthSouth northSouth,
	int longitudeDegrees,
	int longitudeMinutes,
	double longitudeSeconds,
	EastWest eastWest
)
Visual Basic (Declaration)
Public Sub New ( _
	latitudeDegrees As Integer, _
	latitudeMinutes As Integer, _
	latitudeSeconds As Double, _
	northSouth As NorthSouth, _
	longitudeDegrees As Integer, _
	longitudeMinutes As Integer, _
	longitudeSeconds As Double, _
	eastWest As EastWest _
)
Visual C++
public:
LatLng(
	int latitudeDegrees, 
	int latitudeMinutes, 
	double latitudeSeconds, 
	NorthSouth northSouth, 
	int longitudeDegrees, 
	int longitudeMinutes, 
	double longitudeSeconds, 
	EastWest eastWest
)

Parameters

latitudeDegrees
Type: System..::.Int32
The degrees part of the latitude. Must be 0 <= latitudeDegrees <= 90.0.
latitudeMinutes
Type: System..::.Int32
The minutes part of the latitude. Must be 0 <= latitudeMinutes < 60.0.
latitudeSeconds
Type: System..::.Double
The seconds part of the latitude. Must be 0 <= latitudeSeconds < 60.0.
northSouth
Type: DotNetCoords..::.NorthSouth
Whether the latitude is north or south of the equator.
longitudeDegrees
Type: System..::.Int32
The degrees part of the longitude. Must be 0 <= longitudeDegrees <= 90.0.
longitudeMinutes
Type: System..::.Int32
The minutes part of the longitude. Must be 0 <= longitudeMinutes < 60.0.
longitudeSeconds
Type: System..::.Double
The seconds part of the longitude. Must be 0 <= longitudeSeconds < 60.0.
eastWest
Type: DotNetCoords..::.EastWest
Whether the longitude is east or west of the prime meridian.

Exceptions

ExceptionCondition
System..::.ArgumentExceptionIf any of the parameters are invalid.

See Also