org.android.activityminer.model.features
Class GeoLocation

Package class diagram package GeoLocation
java.lang.Object
  extended by org.android.activityminer.model.features.GeoLocation

public class GeoLocation
extends Object

Internal location representation used for the maximum distance calculation.


Field Summary
 Location location
          The location.
private static String providerName
          The internal provider name.
 
Constructor Summary
GeoLocation(double lat, double lon)
          Constructor
 
Method Summary
 double distanceTo(GeoLocation otherLocation)
          Does compute the approximate distance in meters between this and another location.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

providerName

private static final String providerName
The internal provider name.


location

public final Location location
The location.

Constructor Detail

GeoLocation

public GeoLocation(double lat,
                   double lon)
Constructor

Parameters:
lat - the latitude
lon - the longitude
Method Detail

distanceTo

public final double distanceTo(GeoLocation otherLocation)
Does compute the approximate distance in meters between this and another location.

Parameters:
otherLocation - the other location
Returns:
the approximate distance in meters between to the other location