Class Path
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class Path implements Parcelable
Path from a source location to a destination location (output model for pathfinding) Encapsulates several types of nodes and analytics information
-
-
Field Summary
Fields Modifier and Type Field Description public final static Parcelable.Creator<Path>
CREATOR
private final Boolean
isOutdoorPath
private final Boolean
isIndoorPath
private final LocationAware
source
private final LocationAware
destination
private final List<PathNode>
directionNodes
private final List<PathDirection>
directions
private final Double
walkingDistance
private final Double
travelTimeInMinutes
private final Double
travelTime
private final List<PathNode>
nodes
private final List<PathNode>
metroNodes
private final String
pathIdentifier
private final PathNode
lastNode
private final Double
walkingDistanceInMiles
private final Double
walkingDistanceInFeet
-
Method Summary
Modifier and Type Method Description final Boolean
isOutdoorPath()
final Boolean
isIndoorPath()
final LocationAware
getSource()
Getter for the source of path final LocationAware
getDestination()
final List<PathNode>
getDirectionNodes()
Getter for directional nodes, which mark the locations of path directions final List<PathDirection>
getDirections()
Getter for path directions final Double
getWalkingDistance()
Getter for walking distance in meters final Double
getTravelTimeInMinutes()
Getter for Travel time in minutes final Double
getTravelTime()
Getter for travel time in seconds final List<PathNode>
getNodes()
Getter for path nodes suitable for drawing on a map (smoothed and cleaned) final List<PathNode>
getMetroNodes()
Getter for smoothed path nodes, almost same as @{visualNodes} but with AR tweaks final String
getPathIdentifier()
final PathNode
getLastNode()
final Double
getWalkingDistanceInMiles()
final Double
getWalkingDistanceInFeet()
final Double
convertToFeet(Double meters)
final Double
convertToMiles(Double meters)
Unit
writeToParcel(Parcel parcel, Integer flags)
Boolean
equals(Object other)
Integer
hashCode()
Integer
describeContents()
-
-
Method Detail
-
isOutdoorPath
final Boolean isOutdoorPath()
-
isIndoorPath
final Boolean isIndoorPath()
-
getSource
final LocationAware getSource()
Getter for the source of path
- Returns:
Source location
-
getDestination
final LocationAware getDestination()
-
getDirectionNodes
final List<PathNode> getDirectionNodes()
Getter for directional nodes, which mark the locations of path directions
- Returns:
List of nodes
-
getDirections
final List<PathDirection> getDirections()
Getter for path directions
- Returns:
List of path directions
-
getWalkingDistance
final Double getWalkingDistance()
Getter for walking distance in meters
- Returns:
Walking distance in meters
-
getTravelTimeInMinutes
final Double getTravelTimeInMinutes()
Getter for Travel time in minutes
- Returns:
Travel time in minutes
-
getTravelTime
final Double getTravelTime()
Getter for travel time in seconds
- Returns:
Travel time in seconds
-
getNodes
final List<PathNode> getNodes()
Getter for path nodes suitable for drawing on a map (smoothed and cleaned)
- Returns:
List of nodes
-
getMetroNodes
final List<PathNode> getMetroNodes()
Getter for smoothed path nodes, almost same as @{visualNodes} but with AR tweaks
- Returns:
List of nodes
-
getPathIdentifier
final String getPathIdentifier()
-
getLastNode
final PathNode getLastNode()
-
getWalkingDistanceInMiles
final Double getWalkingDistanceInMiles()
-
getWalkingDistanceInFeet
final Double getWalkingDistanceInFeet()
-
convertToFeet
final Double convertToFeet(Double meters)
-
convertToMiles
final Double convertToMiles(Double meters)
-
writeToParcel
Unit writeToParcel(Parcel parcel, Integer flags)
-
describeContents
Integer describeContents()
-
-
-
-