server
Class CalcDistance

java.lang.Object
  extended by server.CalcDistance

public class CalcDistance
extends java.lang.Object

calculates the distance between users relying on their locations and countries using online services.

Since:
1.5
Version:
%I%, %G%
Author:
Karl Tschetschonig, Roland Ladengruber
Matrikelnummer:
0525983, 0427435
Studienkennzahl:
033 526

Constructor Summary
CalcDistance()
          constructs the Calculator
 
Method Summary
 java.lang.String getDistance(StandardUser user1, StandardUser user2)
          calculates the distance between user1 and user2. return value for example "2.2 km" or "5.1 mi"
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalcDistance

public CalcDistance()
constructs the Calculator

Method Detail

getDistance

public java.lang.String getDistance(StandardUser user1,
                                    StandardUser user2)
calculates the distance between user1 and user2. return value for example "2.2 km" or "5.1 mi"

Parameters:
user1 - starting point
user2 - ending point
Returns:
distance in float and unit