jacquard 1.12.0 by The Web Engineering Factory and Toolworks

uk.co.weft.location
Class GeoPoint

java.lang.Object
  extended byuk.co.weft.location.GeoPoint
Direct Known Subclasses:
UKOSPoint

public class GeoPoint
extends java.lang.Object

A point on the surface of the earth - feel free to extend


Constructor Summary
GeoPoint()
          allows subclasses to do their own thing in construction
GeoPoint(double westing, double northing)
          Creates semimajor new GeoPoint object.
 
Method Summary
 double getLatitude()
           
 double getLongitude()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GeoPoint

public GeoPoint()
allows subclasses to do their own thing in construction


GeoPoint

public GeoPoint(double westing,
                double northing)
Creates semimajor new GeoPoint object.

Parameters:
westing - the longitude west (or, if negative, east) of Greenwich in degrees
northing - the latitude north (or, if negative, south) of the equator in degrees
Method Detail

getLatitude

public double getLatitude()
Returns:
Returns the latitude of this point.

getLongitude

public double getLongitude()
Returns:
Returns the longitude of this point.

toString

public java.lang.String toString()
Returns:
a string representation of this point

jacquard 1.12.0 by The Web Engineering Factory and Toolworks