|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.me.jstott.jcoord.LatLng
public class LatLng
Class to represent a latitude/longitude pair. (c) 2006 Jonathan Stott Created on 11-02-2006
Constructor Summary | |
---|---|
LatLng(double lat,
double lng)
Create a new LatLng object to represent a latitude/longitude pair. |
Method Summary | |
---|---|
double |
distance(LatLng ll)
Calculate the surface distance in kilometres from the this LatLng to the given LatLng. |
double |
getLat()
Return the latitude in degrees. |
double |
getLng()
Return the longitude in degrees. |
void |
toOSGB36()
Convert this LatLng from the WGS84 datum to the OSGB36 datum using an approximate Helmert transformation. |
OSRef |
toOSRef()
Convert this latitude and longitude into an OSGB (Ordnance Survey of Great Britain) grid reference. |
java.lang.String |
toString()
Get a String representation of this LatLng object. |
UTMRef |
toUTMRef()
Convert this latitude and longitude to a UTM reference. |
void |
toWGS84()
Convert this LatLng from the OSGB36 datum to the WGS84 datum using an approximate Helmert transformation. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LatLng(double lat, double lng)
lat
- the latitude in degreeslng
- the longitude in degreesMethod Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public OSRef toOSRef()
public UTMRef toUTMRef()
public void toWGS84()
public void toOSGB36()
public double distance(LatLng ll)
ll
-
public double getLat()
public double getLng()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |