Class GeoUniq.Location

java.lang.Object
com.geouniq.android.GeoUniq.Location
Enclosing class:
GeoUniq

public static class GeoUniq.Location extends Object
A location detected for the device.
  • Method Details

    • toString

      @NonNull public String toString()
      Overrides:
      toString in class Object
    • getNestedLocations

      @NonNull public 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)