Code example for Address

Methods: getLatitude, getLongitude

0
		 
		return geoCurve.getEllipsoidalDistance();
	} 
	 
	public static double calculateDistance(Address pointA, Address pointB, int units) {
		return calculateArc(pointA.getLatitude(),
				pointA.getLongitude(),
				pointB.getLatitude(),
				pointB.getLongitude()) 
				;//* Constants.EARTHS_RADIUS[units];  
	} 
 
	public static double calculateDistance(Location pointA, Location pointB, int units) {
		return calculateArc(pointA.getLatitude(),
				pointA.getLongitude(),
				pointB.getLatitude(),
				pointB.getLongitude()) 
				;//* Constants.EARTHS_RADIUS[units];  
	} 
	 
	public static double calculateDistance(double latitudeA, double longitudeA, double latitudeB, double longitudeB){