public final class RouteInstruction extends Object implements Serializable
GetRouteResponse contains list of this instruction.| Constructor and Description |
|---|
RouteInstruction(Time time,
Length distance,
String instruction)
Creates RouteInstruction class object.
|
RouteInstruction(Time time,
Length distance,
String instruction,
IGeometry directionGeometry)
Creates RouteInstruction class object.
|
| Modifier and Type | Method and Description |
|---|---|
IGeometry |
getDirectionGeometry()
Returns geometry for this road segment.
|
Length |
getDistance()
Returns the distance traveled in this road segment.
|
String |
getInstruction()
Returns turn direction for this road segment.
|
Time |
getTime()
Returns the time taken to travel this road segment.
|
public RouteInstruction(Time time, Length distance, String instruction)
time - Value and unit of time taken to travel this road segment.distance - Value and unit of distance traveled in this road segment.instruction - Turn direction for this road segment.public RouteInstruction(Time time, Length distance, String instruction, IGeometry directionGeometry)
time - Value and unit of time taken to travel this road segment.distance - Value and unit of distance traveled in this road segment.instruction - Turn direction for this road segment.directionGeometry - Geometry for this road segment.public Time getTime()
Time, value and unit of time taken to travel this road segment.public Length getDistance()
Length, value and unit of distance traveled in this road segment.public String getInstruction()
String turn direction for this road segment.