public final class RouteCost extends Object implements Serializable
GetRouteCostMatrixRequest.| Constructor and Description |
|---|
RouteCost(Time time,
Length distance,
IPoint startPoint,
IPoint endPoint)
Creates the RouteCost class object.
|
| Modifier and Type | Method and Description |
|---|---|
Length |
getDistance()
Returns distance to travel in the generated route.
|
IPoint |
getEndPoint()
Returns the end point for which this route cost was calculated.
|
IPoint |
getStartPoint()
Returns the start point for which this route cost was calculated.
|
Time |
getTime()
Returns time taken to travel the generated route.
|
public RouteCost(Time time, Length distance, IPoint startPoint, IPoint endPoint)
time - Value and unit of time taken to travel the generated route.distance - Value and unit of distance to travel the generated route.startPoint - The origin for which this route cost was calculated.endPoint - The destination for which this route cost was calculated.public IPoint getStartPoint()
IPoint, the origin for which this route cost was calculated.public IPoint getEndPoint()
IPoint, the destination for which this route cost was calculated.public Time getTime()
Time, value and unit of time taken to travel the generated route.