public class PathWrapper extends Object
Constructor and Description |
---|
PathWrapper() |
Modifier and Type | Method and Description |
---|---|
PathWrapper |
addDebugInfo(String debugInfo) |
PathWrapper |
addError(Throwable error) |
PathWrapper |
addErrors(List<Throwable> errors) |
BBox |
calcRouteBBox(BBox _fallback)
Calculates the bounding box of this route response
|
double |
getAscend()
This method returns the total elevation change (going upwards) in meter.
|
String |
getDebugInfo() |
double |
getDescend()
This method returns the total elevation change (going downwards) in meter.
|
List<String> |
getDescription() |
double |
getDistance()
This method returns the distance of the path.
|
List<Throwable> |
getErrors() |
BigDecimal |
getFare() |
InstructionList |
getInstructions() |
List<Trip.Leg> |
getLegs() |
int |
getNumChanges() |
PointList |
getPoints()
This method returns all points on the path.
|
double |
getRouteWeight()
This method returns a double value which is better than the time for comparison of routes but
only if you know what you are doing, e.g.
|
long |
getTime() |
PointList |
getWaypoints()
This method returns the input points snapped to the road network.
|
boolean |
hasErrors() |
PathWrapper |
setAscend(double ascend) |
PathWrapper |
setDescend(double descend) |
PathWrapper |
setDescription(List<String> names) |
PathWrapper |
setDistance(double distance) |
void |
setFare(BigDecimal fare) |
void |
setFirstPtLegDeparture(long firstPtLegDeparture) |
void |
setInstructions(InstructionList instructions) |
void |
setNumChanges(int numChanges) |
PathWrapper |
setPoints(PointList points) |
PathWrapper |
setRouteWeight(double weight) |
PathWrapper |
setTime(long timeInMillis) |
void |
setWaypoints(PointList wpList)
This method initializes this path with the snapped input points.
|
String |
toString() |
public List<String> getDescription()
public PathWrapper setDescription(List<String> names)
public PathWrapper addDebugInfo(String debugInfo)
public String getDebugInfo()
public PointList getPoints()
public PathWrapper setPoints(PointList points)
public PointList getWaypoints()
public void setWaypoints(PointList wpList)
public double getDistance()
public PathWrapper setDistance(double distance)
public double getAscend()
public PathWrapper setAscend(double ascend)
public double getDescend()
public PathWrapper setDescend(double descend)
public long getTime()
public PathWrapper setTime(long timeInMillis)
public double getRouteWeight()
public PathWrapper setRouteWeight(double weight)
public BBox calcRouteBBox(BBox _fallback)
public InstructionList getInstructions()
public void setInstructions(InstructionList instructions)
public boolean hasErrors()
public PathWrapper addError(Throwable error)
public PathWrapper addErrors(List<Throwable> errors)
public void setNumChanges(int numChanges)
public int getNumChanges()
public void setFirstPtLegDeparture(long firstPtLegDeparture)
public void setFare(BigDecimal fare)
public BigDecimal getFare()
Copyright © 2012–2017. All rights reserved.