Class DirectionsRequest

  • All Implemented Interfaces:
    android.os.Parcelable

    public class DirectionsRequest
    extends 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

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

        @Deprecated
        public boolean minimizeFloorChanges()
        Deprecated.
        Returns if the route will be calculated minimizing the floor changes
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class 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