Package es.situm.sdk.directions
Class DirectionsRequest
java.lang.Object
es.situm.sdk.directions.DirectionsRequest
- All Implemented Interfaces:
android.os.Parcelable,MapperInterface
Parameters to request a route with
DirectionsManager.
Use the DirectionsRequest.Builder to create an instance. Instances are immutable.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe accessibility mode used to calculate a routestatic final classDirectionsRequestbuilder static inner class. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final android.os.Parcelable.Creator<DirectionsRequest>static final DirectionsRequest.AccessibilityModeFields inherited from interface es.situm.sdk.model.MapperInterface
ACCESSIBILITY_MODE, ACCURACY, ADDRESS, ALTITUDE, ASSET_TRACKING_OPTIONS_BEACON_FILTERS, ASSET_TRACKING_OPTIONS_ENABLED, ASSET_TRACKING_OPTIONS_ITERATIONS_TO_UPLOAD, ASSET_TRACKING_OPTIONS_SCANNING_INTERVAL, BEACON_FILTER_UUID, BEARING, BEARING_FROM, BEARING_QUALITY, BOUNDS, BOUNDS_ROTATED, BUILDING, BUILDING_IDENTIFIER, BUILDING_NAME, CARTESIAN_BEARING, CARTESIAN_COORDINATE, CENTER, CLOSEST_LOCATION_IN_ROUTE, CODE, CONVERSION, COORDINATE, CREATED_AT, CURRENT_INDICATION, CURRENT_STEP_INDEX, CUSTOM_FIELDS, dateFormat, DEGREES, DEGREES_CLOCKWISE, DEVICE_ID, DIAGNOSTICS_OPTIONS_UPLOAD_DIAGNOSTICS_DATA, DIMENSIONS, DISTANCE, DISTANCE_TO_CHANGE_FLOOR_THRESHOLD, DISTANCE_TO_CHANGE_INDICATION_THRESHOLD, DISTANCE_TO_CLOSEST_POINT_IN_ROUTE, DISTANCE_TO_END_STEP, DISTANCE_TO_GOAL, DISTANCE_TO_GOAL_THRESHOLD, DISTANCE_TO_IGNORE_FIRST_INDICATION, DISTANCE_TO_NEXT_LEVEL, DURATION_MINUTES, EDGES, EVENTS, EXCLUDED_TAGS, EXTERNAL_NAVIGATION_PAYLOAD, EXTERNAL_NAVIGATION_TYPE, FIRST_STEP, FLOOR, FLOOR_IDENTIFIER, FLOORS, FOREGROUND_SERVICE_NOTIFICATION_MESSAGE, FOREGROUND_SERVICE_NOTIFICATION_SHOW_STOP_ACTION, FOREGROUND_SERVICE_NOTIFICATION_STOP_ACTION_TEXT, FOREGROUND_SERVICE_NOTIFICATION_TAP_ACTION, FOREGROUND_SERVICE_NOTIFICATION_TITLE, FROM, GEOFENCES, HAS_BEARING, HAS_CARTESIAN_BEARING, HEIGHT, HUMAN_READABLE_MESSAGE, ID, IDENTIFIER, IGNORE_LOW_QUALITY_LOCATIONS, INCLUDED_TAGS, INDICATION_TYPE, INDICATIONS, INDICATIONS_INTERVAL, INDOOR_POIS, INFO_HTML, IS_FIRST, IS_INDOOR, IS_LAST, IS_OUTDOOR, IS_PUBLIC, LAST_STEP, LATITUDE, LONGITUDE, MAP_URL, MINIMIZE_FLOOR_CHANGES, NAME, NEEDED_LEVEL_CHANGE, NEXT_INDICATION, NEXT_LEVEL, NODES, NORTH_EAST, NORTH_WEST, ORIENTATION, ORIENTATION_TYPE, OUTDOOR_BUILDING_DETECTOR_BLE, OUTDOOR_POIS, OUTSIDE_ROUTE_THRESHOLD, PICTURE_THUMB_URL, PICTURE_URL, POI_CATEGORIES, POI_CATEGORY, POI_CATEGORY_CODE, POI_CATEGORY_ICON_SELECTED, POI_CATEGORY_ICON_UNSELECTED, POI_CATEGORY_IDENTIFIER, POI_CATEGORY_IDENTIFIERS, POI_CATEGORY_iNAME, POI_CATEGORY_NAME, POI_NAME, POI_TO, POI_TO_IDENTIFIER, POINTS, POLYGON_POINTS, POSITION, PROVIDER, QUALITY, RADIANS, RADIANS_MINUS_PI_PI, RADIUS, REALTIME_UPDATE_INTERVAL, ROTATION, ROUND_INDICATIONS_STEP, ROUTE, ROUTE_STEP, SCALE, SEGMENTS, SOUTH_EAST, SOUTH_WEST, STATUS_NAME, STATUS_ORDINAL, STEP_IDX_DESTINATION, STEP_IDX_ORIGIN, STEPS, TIME_TO_END_STEP, TIME_TO_FIRST_INDICATION, TIME_TO_GOAL, TIME_TO_IGNORE_UNEXPECTED_FLOOR_CHANGES, TIMESTAMP, TO, TO_LEGACY, TRIGGER, UPDATED_AT, USER_IDENTIFIER, WIDTH, X, YFields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE -
Method Summary
Modifier and TypeMethodDescriptionintbooleanstatic DirectionsRequestReturn a newDirectionsRequestinstance object containing the data at the given map.Returns theDirectionsRequest.AccessibilityModeof the routeReturns the user's bearing in the starting point.List<es.situm.sdk.directions.internal.calc.RouteCollider>Returns the list of elements used to exclude areas from the route.getFrom()Returns the point where the route should start.Returns object that contains different parameters related to how a route is computed.Returns the identifier of the POI where the route should end.getTo()Returns the point where the route should end.inthashCode()booleanReturns whether the route has to be suitable for wheel chairs (true) or not (false)booleanReturns if the route will be calculated minimizing the floor changestoMap()Method to transform object into Map<String, Object>toString()voidwriteToParcel(android.os.Parcel dest, int flags)
-
Field Details
-
DEFAULT_ACCESSIBILITY_MODE
-
CREATOR
-
-
Method Details
-
getFrom
Returns the point where the route should start.- Returns:
Pointpoint inside a building (Point.isIndoor()== true)
-
getBearingFrom
Returns the user's bearing in the starting point.- Returns:
Angle
-
getTo
Returns the point where the route should end.- Returns:
Pointpoint inside a building (Point.isIndoor()== true)
-
getPoiToIdentifier
Returns the identifier of the POI where the route should end.- Returns:
StringIdentifier of the POI
-
getOptions
Returns object that contains different parameters related to how a route is computed.- Returns:
DirectionsOptions
-
getExcludedTags
-
getIncludedTags
-
isAccessible
public boolean isAccessible()Returns whether the route has to be suitable for wheel chairs (true) or not (false)- Returns:
- boolean
-
getAccessibilityMode
Returns theDirectionsRequest.AccessibilityModeof the route- Returns:
DirectionsRequest.AccessibilityMode
-
minimizeFloorChanges
public boolean minimizeFloorChanges()Returns if the route will be calculated minimizing the floor changes -
getExclusions
Returns the list of elements used to exclude areas from the route. For internal use only.- Returns:
- List of exclusions.
-
equals
-
hashCode
public int hashCode() -
toString
-
describeContents
public int describeContents()- Specified by:
describeContentsin interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags) - Specified by:
writeToParcelin interfaceandroid.os.Parcelable
-
toMap
Description copied from interface:MapperInterfaceMethod to transform object into Map<String, Object>- Specified by:
toMapin interfaceMapperInterface- Returns:
- Map<String, Object> with the information of the object mapped
-
fromMap
Return a newDirectionsRequestinstance object containing the data at the given map. UseMapperInterfaceto populate the Map. The expected fields are those defined atDirectionsRequest.Builder. TheDirectionsOptionswill be ignored.- 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.
-