Class NavigationRequest

    • Field Detail

      • DEFAULT_DISTANCE_THRESHOLD

        public static final double DEFAULT_DISTANCE_THRESHOLD
        See Also:
        Constant Field Values
      • DEFAULT_DISTANCE_TO_IGNORE_FIRST_INDICATION

        public static final double DEFAULT_DISTANCE_TO_IGNORE_FIRST_INDICATION
        See Also:
        Constant Field Values
      • DEFAULT_DISTANCE_CHANGE_FLOOR

        public static final double DEFAULT_DISTANCE_CHANGE_FLOOR
        See Also:
        Constant Field Values
      • DEFAULT_DISTANCE_TO_CHANGE_INDICATION

        public static final double DEFAULT_DISTANCE_TO_CHANGE_INDICATION
        See Also:
        Constant Field Values
      • DEFAULT_INDICATIONS_INTERVAL

        public static final long DEFAULT_INDICATIONS_INTERVAL
        See Also:
        Constant Field Values
      • DEFAULT_TIME_TO_FIRST_INDICATION

        public static final long DEFAULT_TIME_TO_FIRST_INDICATION
        See Also:
        Constant Field Values
      • DEFAULT_ROUND_INDICATION_STEP

        public static final int DEFAULT_ROUND_INDICATION_STEP
        See Also:
        Constant Field Values
      • DEFAULT_TIME_TO_IGNORE_UNEXPECTED_FLOOR_CHANGES

        public static final int DEFAULT_TIME_TO_IGNORE_UNEXPECTED_FLOOR_CHANGES
        See Also:
        Constant Field Values
      • DEFAULT_IGNORE_LOW_QUALITY_LOCATIONS

        public static final boolean DEFAULT_IGNORE_LOW_QUALITY_LOCATIONS
        See Also:
        Constant Field Values
    • Method Detail

      • getRoute

        public Route getRoute()
      • setRoute

        public void setRoute​(Route route)
        Sets the Route whose progress is going to be updated.
        Parameters:
        route - the route to set.
      • getDistanceToGoalThreshold

        @FloatRange(from=0.0)
        public double getDistanceToGoalThreshold()
      • getOutsideRouteThreshold

        @FloatRange(from=0.0)
        public double getOutsideRouteThreshold()
      • getDistanceToIgnoreFirstIndication

        @FloatRange(from=0.0)
        public double getDistanceToIgnoreFirstIndication()
      • getDistanceToChangeFloorThreshold

        @FloatRange(from=0.0)
        public double getDistanceToChangeFloorThreshold()
      • getDistanceToChangeIndicationThreshold

        @FloatRange(from=0.0)
        public double getDistanceToChangeIndicationThreshold()
      • getIndicationsInterval

        @IntRange(from=0L)
        public long getIndicationsInterval()
      • getTimeToFirstIndication

        @IntRange(from=0L)
        public long getTimeToFirstIndication()
      • getRoundIndicationsStep

        @IntRange(from=0L)
        public int getRoundIndicationsStep()
      • getTimeToIgnoreLocationInWrongFloorDuringFloorChange

        @IntRange(from=0L)
        public int getTimeToIgnoreLocationInWrongFloorDuringFloorChange()
      • ignoreLowQualityLocations

        public boolean ignoreLowQualityLocations()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toMap

        public java.util.Map<java.lang.String,​java.lang.Object> toMap()
        Description copied from interface: MapperInterface
        Method to transform object into Map
        Specified by:
        toMap in interface MapperInterface
        Returns:
        Map with the information of the object mapped
      • fromMap

        public static NavigationRequest fromMap​(java.util.Map<java.lang.String,​java.lang.Object> map)
                                         throws java.lang.IllegalArgumentException
        Return a new NavigationRequest instance object containing the data at the given map. Use MapperInterface to populate the Map. The expected fields are those defined at NavigationRequest.Builder. MapperInterface.ROUTE will be ignored and must be set using setRoute(Route).
        Parameters:
        map - Map containing the data used to populate the new object.
        Returns:
        New instance.
        Throws:
        java.lang.IllegalArgumentException - If there is not enough information at the given map or it is incorrect.