Click or drag to resize
LatLng Constructor (Int32, Int32, Double, NorthSouth, Int32, Int32, Double, EastWest)
doogal.co.uk Home



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.22 (1.0.0.22)
Syntax
public LatLng(
	int latitudeDegrees,
	int latitudeMinutes,
	double latitudeSeconds,
	NorthSouth northSouth,
	int longitudeDegrees,
	int longitudeMinutes,
	double longitudeSeconds,
	EastWest eastWest
)

Parameters

latitudeDegrees
Type: SystemInt32
The degrees part of the latitude. Must be 0 <= latitudeDegrees <= 90.0.
latitudeMinutes
Type: SystemInt32
The minutes part of the latitude. Must be 0 <= latitudeMinutes < 60.0.
latitudeSeconds
Type: SystemDouble
The seconds part of the latitude. Must be 0 <= latitudeSeconds < 60.0.
northSouth
Type: DotNetCoordsNorthSouth
Whether the latitude is north or south of the equator.
longitudeDegrees
Type: SystemInt32
The degrees part of the longitude. Must be 0 <= longitudeDegrees <= 180.0.
longitudeMinutes
Type: SystemInt32
The minutes part of the longitude. Must be 0 <= longitudeMinutes < 60.0.
longitudeSeconds
Type: SystemDouble
The seconds part of the longitude. Must be 0 <= longitudeSeconds < 60.0.
eastWest
Type: DotNetCoordsEastWest
Whether the longitude is east or west of the prime meridian.
Exceptions
ExceptionCondition
ArgumentExceptionIf any of the parameters are invalid.
See Also