-
- 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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
PathDirection.Companion
-
Field Summary
Fields Modifier and Type Field Description 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
getIsPortalType()
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
-
getNodeTypeCode
final String getNodeTypeCode()
Getter for the graph node type associated with the path direction Useful for differentiating between types of portal directions
-
getDirectionType
final PathDirectionType getDirectionType()
Getter for direction type
-
getMessage
final String getMessage()
Getter for the UI message for this direction
-
getOrientation
final Float getOrientation()
Getter for orientation change required to fulfill this path direction
-
getDistanceInMeters
final Float getDistanceInMeters()
Getter for distance between this and previous path direction
-
getDistanceInMiles
final Float getDistanceInMiles()
Getter for distance between this and previous path direction
-
getDistanceInFeet
final Float getDistanceInFeet()
Getter for distance between this and previous path direction
-
getDurationInSeconds
final Float getDurationInSeconds()
Getter for estimated duration between this and previous path direction
-
getIsPortalType
final Boolean getIsPortalType()
-
writeToParcel
Unit writeToParcel(Parcel parcel, Integer flags)
-
describeContents
Integer describeContents()
-
convertToFeet
final Double convertToFeet(Double meters)
-
convertToMiles
final Double convertToMiles(Double meters)
-
-
-
-