Class PathDirection
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class PathDirection implements Parcelable
Model for path direction Encapsulates the location, type and analytics information of a path direction
-
-
Field Summary
Fields Modifier and Type Field Description public final static Parcelable.Creator<PathDirection>
CREATOR
private final Location
location
private final String
nodeTypeCode
private final PathDirectionType
directionType
private final String
message
private final Float
orientation
private final Float
distanceInMeters
private final Float
distanceInMiles
private final Float
distanceInFeet
private final Float
durationInSeconds
private final Boolean
isPortalType
-
Constructor Summary
Constructors Constructor Description PathDirection(Parcel parcel)
-
Method Summary
Modifier and Type Method Description final Location
getLocation()
Getter for the location of path direction final String
getNodeTypeCode()
Getter for the graph node type associated with the path direction Useful for differentiating between types of portal directions final PathDirectionType
getDirectionType()
Getter for direction type final String
getMessage()
Getter for the UI message for this direction final Float
getOrientation()
Getter for orientation change required to fulfill this path direction final Float
getDistanceInMeters()
Getter for distance between this and previous path direction final Float
getDistanceInMiles()
Getter for distance between this and previous path direction final Float
getDistanceInFeet()
Getter for distance between this and previous path direction final Float
getDurationInSeconds()
Getter for estimated duration between this and previous path direction final Boolean
isPortalType()
Unit
writeToParcel(Parcel parcel, Integer flags)
Integer
describeContents()
Boolean
equals(Object other)
Integer
hashCode()
final Double
convertToFeet(Double meters)
final Double
convertToMiles(Double meters)
-
-
Constructor Detail
-
PathDirection
PathDirection(Parcel parcel)
-
-
Method Detail
-
getLocation
final Location getLocation()
Getter for the location of path direction
- Returns:
Path direction location
-
getNodeTypeCode
final String getNodeTypeCode()
Getter for the graph node type associated with the path direction Useful for differentiating between types of portal directions
- Returns:
Graph node type
-
getDirectionType
final PathDirectionType getDirectionType()
Getter for direction type
- Returns:
Type of path direction
-
getMessage
final String getMessage()
Getter for the UI message for this direction
- Returns:
Message string
-
getOrientation
final Float getOrientation()
Getter for orientation change required to fulfill this path direction
- Returns:
Amount of rotation in radians, 0 for non-applicable direction types
-
getDistanceInMeters
final Float getDistanceInMeters()
Getter for distance between this and previous path direction
- Returns:
Distance in meters
-
getDistanceInMiles
final Float getDistanceInMiles()
Getter for distance between this and previous path direction
- Returns:
Distance in miles
-
getDistanceInFeet
final Float getDistanceInFeet()
Getter for distance between this and previous path direction
- Returns:
Distance in feet
-
getDurationInSeconds
final Float getDurationInSeconds()
Getter for estimated duration between this and previous path direction
- Returns:
Duration in seconds
-
isPortalType
final Boolean isPortalType()
-
writeToParcel
Unit writeToParcel(Parcel parcel, Integer flags)
-
describeContents
Integer describeContents()
-
convertToFeet
final Double convertToFeet(Double meters)
-
convertToMiles
final Double convertToMiles(Double meters)
-
-
-
-