Class MPPositionResult

    • Constructor Detail

      • MPPositionResult

        public MPPositionResult()
      • MPPositionResult

        public MPPositionResult​(@NonNull
                                Point point)
      • MPPositionResult

        public MPPositionResult​(@NonNull
                                Point point,
                                float accuracy)
      • MPPositionResult

        public MPPositionResult​(@NonNull
                                Point point,
                                float accuracy,
                                float bearing)
      • MPPositionResult

        public MPPositionResult​(@NonNull
                                Point point,
                                float accuracy,
                                float bearing,
                                int floor)
      • MPPositionResult

        public MPPositionResult​(@NonNull
                                Point point,
                                float accuracy,
                                int floor)
    • Method Detail

      • hasFloor

        public boolean hasFloor()
        Checks if floor info is available

        If true, the value returned by getFloor() will be a valid one

        Specified by:
        hasFloor in interface PositionResult
        Returns:
      • getFloor

        public int getFloor()
        Gets the floor (floor index)

        The value returned is only valid if true is returned when calling hasFloor()

        Specified by:
        getFloor in interface PositionResult
        Returns:
      • setFloor

        public void setFloor​(int floor)
        Sets the floor
        Specified by:
        setFloor in interface PositionResult
        Parameters:
        floor -
      • hasBearing

        public boolean hasBearing()
        Checks if bearing is available
        Specified by:
        hasBearing in interface PositionResult
        Returns:
      • getBearing

        public float getBearing()
        Get the bearing, in degrees
        Specified by:
        getBearing in interface PositionResult
        Returns:
      • setBearing

        public void setBearing​(float bearing)
        Set the bearing, in degrees
        Specified by:
        setBearing in interface PositionResult
        Parameters:
        bearing -
      • hasAccuracy

        public boolean hasAccuracy()
        Checks if horizontal accuracy is available
        Specified by:
        hasAccuracy in interface PositionResult
        Returns:
      • getAccuracy

        public float getAccuracy()
        Get the estimated horizontal accuracy of this location, radial, in meters
        Specified by:
        getAccuracy in interface PositionResult
        Returns:
      • setAccuracy

        public void setAccuracy​(float accuracy)
        Set the estimated horizontal accuracy of this location, radial, in meters
        Specified by:
        setAccuracy in interface PositionResult
        Parameters:
        accuracy -
      • getAndroidLocation

        @Nullable
        public android.location.Location getAndroidLocation()
        A Location with the original data, if available
        Specified by:
        getAndroidLocation in interface PositionResult
        Returns:
        A Location or null
      • setAndroidLocation

        public void setAndroidLocation​(@Nullable
                                       android.location.Location location)
        Sets the Location origin of
        Specified by:
        setAndroidLocation in interface PositionResult
        Parameters:
        location - A Location or null
      • toString

        @NonNull
        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object