Class DirectionsRequest

    • 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)
      • getPoiToIdentifier

        public java.lang.String getPoiToIdentifier()
        Returns the identifier of the POI where the route should end.
        Returns:
        String Identifier of the POI
      • getExcludedTags

        public java.util.List<java.lang.String> getExcludedTags()
      • getIncludedTags

        public java.util.List<java.lang.String> getIncludedTags()
      • 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
      • 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
      • 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 DirectionsRequest fromMap​(java.util.Map<java.lang.String,​java.lang.Object> map)
                                         throws java.lang.IllegalArgumentException
        Return a new DirectionsRequest instance object containing the data at the given map. Use MapperInterface to populate the Map. The expected fields are those defined at DirectionsRequest.Builder. The DirectionsOptions will be ignored.
        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.