public final class GetRouteResponse extends Object implements Serializable
GetRouteRequest| Constructor and Description |
|---|
GetRouteResponse(Time time,
Length distance,
List<RouteInstruction> routeDirections,
IGeometry geometry,
IGeometry intermediatePoints,
List<String> warnings)
Creates GetRouteResponse class object.
|
| Modifier and Type | Method and Description |
|---|---|
Length |
getDistance()
Returns distance to travel in the generated route.
|
IGeometry |
getGeometry()
Returns geometry of generated route.
|
IGeometry |
getIntermediatePoints()
Returns intermediate points of generated route.
|
List<RouteInstruction> |
getRouteDirections()
Returns turn by turn direction list of generated route.
|
Time |
getTime()
Returns time taken to travel the generated route.
|
List<String> |
getWarnings()
Returns warnings for qaulity of the generated route.
|
public GetRouteResponse(Time time, Length distance, List<RouteInstruction> routeDirections, IGeometry geometry, IGeometry intermediatePoints, List<String> warnings)
time - Value and unit of time taken to travel the generated route.distance - Value and unit of distance to travel in the generated route.routeDirections - List of RouteInstruction i.e. turn by turn direction list of generated route.geometry - The geometry of generated route.intermediatePoints - The intermediate points of generated route.warnings - warnings for quality of generated route.public Time getTime()
Time, value and unit of time taken to travel the generated route.public Length getDistance()
Length, value and unit of distance to travel in the generated route.public List<RouteInstruction> getRouteDirections()
List of RouteInstruction of generated route.public IGeometry getGeometry()
LineString of generated route.public IGeometry getIntermediatePoints()
MultiPoint of generated route.