public class WGS84LatLngCoordinate extends AbstractGeoCoordinate
Constructor and Description |
---|
WGS84LatLngCoordinate()
Instantiates a new WGS84 latitude longitude coordinate.
|
WGS84LatLngCoordinate(double latitude,
double longitude)
Instantiates a new WGS84 latitude longitude coordinate.
|
Modifier and Type | Method and Description |
---|---|
void |
convertOSGB36ToWGS84()
Convert OSGB 36 to WGS 84.
|
void |
convertWGS84ToOSGB36()
Convert WGS 84 to OSGB 36.
|
double |
getDistanceInKm(WGS84LatLngCoordinate pointNo2)
Gets the distance in km.
|
java.lang.Double |
getLatitude()
Gets the latitude.
|
double |
getLongitude()
Gets the longitude.
|
OSGBCoordinate |
getOSGBCoordinate()
Convert a latitude and longitude into an OSGB grid reference.
|
UTMCoordinate |
getUTMCoordinate()
Gets the UMT reference of this coordinate.
|
void |
setLatitude(double latitude)
Sets the latitude.
|
void |
setLongitude(double longitude)
Sets the longitude.
|
java.lang.String |
toString() |
public WGS84LatLngCoordinate()
public WGS84LatLngCoordinate(double latitude, double longitude)
latitude
- the latitudelongitude
- the longitudepublic java.lang.Double getLatitude()
public void setLatitude(double latitude)
latitude
- the new latitudepublic double getLongitude()
public void setLongitude(double longitude)
longitude
- the new longitudepublic double getDistanceInKm(WGS84LatLngCoordinate pointNo2)
pointNo2
- the point no 2public OSGBCoordinate getOSGBCoordinate()
public UTMCoordinate getUTMCoordinate()
public void convertWGS84ToOSGB36()
public void convertOSGB36ToWGS84()
public java.lang.String toString()
toString
in class java.lang.Object