Package com.geouniq.android
Class GeoUniq.Location
- java.lang.Object
-
- com.geouniq.android.GeoUniq.Location
-
- Enclosing class:
- GeoUniq
public static class GeoUniq.Location extends java.lang.ObjectA location detected for the device.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetAccuracy()doublegetLatitude()doublegetLongitude()java.util.ArrayList<GeoUniq.Location>getNestedLocations()longgetTime()intgetVisitDuration()voidsetAccuracy(double accuracy)voidsetLatitude(double lat)voidsetLongitude(double lng)voidsetTime(long time)voidsetVisitDuration(int duration)java.lang.StringtoString()
-
-
-
Method Detail
-
toString
@NonNull public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getNestedLocations
@NonNull public java.util.ArrayList<GeoUniq.Location> getNestedLocations()
-
getLatitude
public double getLatitude()
- Returns:
- the latitude
-
getLongitude
public double getLongitude()
- Returns:
- the longitude
-
getTime
public long getTime()
- Returns:
- the time
-
getAccuracy
public double getAccuracy()
- Returns:
- the accuracy in meters
-
setAccuracy
public void setAccuracy(double accuracy)
-
setLatitude
public void setLatitude(double lat)
- Parameters:
lat- the latitude to set
-
setLongitude
public void setLongitude(double lng)
- Parameters:
lng- the longitude to set
-
setTime
public void setTime(long time)
- Parameters:
time- the time to set
-
getVisitDuration
public int getVisitDuration()
- Returns:
- the duration of the visit in seconds
-
setVisitDuration
public void setVisitDuration(int duration)
-
-