Class NavigationRequest

java.lang.Object
es.situm.sdk.navigation.NavigationRequest
All Implemented Interfaces:
MapperInterface

public class NavigationRequest extends Object implements MapperInterface
Holds NavigationManager request parameters
  • Field Details

    • DEFAULT_DISTANCE_THRESHOLD

      public static final double DEFAULT_DISTANCE_THRESHOLD
      See Also:
    • DEFAULT_DISTANCE_TO_IGNORE_FIRST_INDICATION

      public static final double DEFAULT_DISTANCE_TO_IGNORE_FIRST_INDICATION
      See Also:
    • DEFAULT_DISTANCE_CHANGE_FLOOR

      public static final double DEFAULT_DISTANCE_CHANGE_FLOOR
      See Also:
    • DEFAULT_DISTANCE_TO_CHANGE_INDICATION

      public static final double DEFAULT_DISTANCE_TO_CHANGE_INDICATION
      See Also:
    • DEFAULT_INDICATIONS_INTERVAL

      public static final long DEFAULT_INDICATIONS_INTERVAL
      See Also:
    • DEFAULT_TIME_TO_FIRST_INDICATION

      public static final long DEFAULT_TIME_TO_FIRST_INDICATION
      See Also:
    • DEFAULT_ROUND_INDICATION_STEP

      public static final int DEFAULT_ROUND_INDICATION_STEP
      See Also:
    • DEFAULT_TIME_TO_IGNORE_UNEXPECTED_FLOOR_CHANGES

      public static final int DEFAULT_TIME_TO_IGNORE_UNEXPECTED_FLOOR_CHANGES
      See Also:
    • DEFAULT_IGNORE_LOW_QUALITY_LOCATIONS

      public static final boolean DEFAULT_IGNORE_LOW_QUALITY_LOCATIONS
      See Also:
  • Method Details

    • 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(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

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

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

      public static NavigationRequest fromMap(Map<String,Object> map) throws 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:
      IllegalArgumentException - If there is not enough information at the given map or it is incorrect.