Class DirectionsRequest

  • All Implemented Interfaces:
    android.os.Parcelable

    public class DirectionsRequest
    extends java.lang.Object
    implements android.os.Parcelable
    Parameters to request a route with DirectionsManager.

    Use the DirectionsRequest.Builder to create an instance. Instances are immutable.

    • Method Detail

      • getFrom

        public Point getFrom()
        Returns the point where the route should start.
        Returns:
        Point point inside a building (Point.isIndoor() == true)
      • getBearingFrom

        @Nullable
        public Angle getBearingFrom()
        Returns the user's bearing in the starting point.
        Returns:
        Angle
      • getTo

        public Point getTo()
        Returns the point where the route should end.
        Returns:
        Point point inside a building (Point.isIndoor() == true)
      • isAccessible

        public boolean isAccessible()
        Returns whether the route has to be suitable for wheel chairs (true) or not (false)
        Returns:
        boolean
      • minimizeFloorChanges

        public boolean minimizeFloorChanges()
        Returns if the route will be calculated minimizing the floor changes
      • getExclusions

        public java.util.List<es.situm.sdk.directions.internal.calc.RouteCollider> getExclusions()
        Returns the list of elements used to exclude areas from the route. For internal use only.
        Returns:
        List of exclusions.
      • 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
      • containsValidModifiers

        public boolean containsValidModifiers()
        Check if there are valid modifiers (which action is different that UNKNOWN)
        Returns:
        boolean value that indicates if options have valid modifiers (true) or not (false)
      • 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