-
- 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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
Path.Companion
-
Field Summary
Fields Modifier and Type Field Description 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
travelTime
private final List<PathNode>
nodes
private final List<PathNode>
metroNodes
private String
pathIdentifier
private final PathNode
lastNode
-
Method Summary
Modifier and Type Method Description 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
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 Unit
setPathIdentifier(String pathIdentifier)
final PathNode
getLastNode()
Unit
writeToParcel(Parcel parcel, Integer flags)
Integer
describeContents()
-
-
Method Detail
-
getSource
final LocationAware getSource()
Getter for the source of path
-
getDestination
final LocationAware getDestination()
-
getDirectionNodes
final List<PathNode> getDirectionNodes()
Getter for directional nodes, which mark the locations of path directions
-
getDirections
final List<PathDirection> getDirections()
Getter for path directions
-
getWalkingDistance
final Double getWalkingDistance()
Getter for walking distance in meters
-
getTravelTime
final Double getTravelTime()
Getter for travel time in seconds
-
getNodes
final List<PathNode> getNodes()
Getter for path nodes suitable for drawing on a map (smoothed and cleaned)
-
getMetroNodes
final List<PathNode> getMetroNodes()
Getter for smoothed path nodes, almost same as @{visualNodes} but with AR tweaks
-
getPathIdentifier
final String getPathIdentifier()
-
setPathIdentifier
final Unit setPathIdentifier(String pathIdentifier)
-
getLastNode
final PathNode getLastNode()
-
writeToParcel
Unit writeToParcel(Parcel parcel, Integer flags)
-
describeContents
Integer describeContents()
-
-
-
-