Class Location

    • Field Detail

      • CREATOR

        public static final android.os.Parcelable.Creator<Location> CREATOR
    • Method Detail

      • isIndoor

        public boolean isIndoor()
        Return true if the location is indoor
        See Also:
        isOutdoor()
      • getDeviceId

        public String getDeviceId()
        Returns the device identifier that has generated the location
      • isOutdoor

        public boolean isOutdoor()
        Return true if the location is outdoor
        See Also:
        isIndoor()
      • getCoordinate

        public Coordinate getCoordinate()
        Return the coordinate of the location
      • getCartesianCoordinate

        public CartesianCoordinate getCartesianCoordinate()
        Only used in indoor. Return the cartesian coordinate in the corresponding floor of the building image.
      • getQuality

        public Location.Quality getQuality()
        Only used in indoor. Return an indicative of quality calculated with accuracy and building size.
      • getTime

        public long getTime()
        Return the timestamp of the location.
      • getAccuracy

        public float getAccuracy()
        Return the accuracy radius (in meters)
      • getCartesianBearing

        public Angle getCartesianBearing()
        Only used in indoor. Return the bearing with respect to the building, being 0 the west-east axis. If hasCartesianBearing() is false the bearing returned couldn't be reliable. You can get the bearing quality with getBearingQuality()
      • getBearing

        public Angle getBearing()
        Return the bearing (in degrees) with respect to the Earth North. If hasBearing() is false it will return a default Angle
      • getProvider

        public String getProvider()
      • getCustomFields

        public Map<String,​String> getCustomFields()
        Returns map of custom fields, indexed by their name.
        Returns:
        Unmodifiable Map<String, String>
      • describeContents

        public int describeContents()
        Specified by:
        describeContents in interface android.os.Parcelable
      • writeToParcel

        public void writeToParcel​(android.os.Parcel dest,
                                  int flags)
        Specified by:
        writeToParcel in interface android.os.Parcelable
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object