java.lang.Object | |
↳ | com.carto.routing.RoutingResult |
A class that defines list of routing actions and path geometry.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
RoutingResult(Projection projection, MapPosVector points, RoutingInstructionVector instructions)
Constructs a new RoutingResult instance from projection, points and instructions.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
synchronized void | delete() | ||||||||||
boolean |
equals(Object obj)
Checks if this object is equal to the specified object.
| ||||||||||
RoutingInstructionVector |
getInstructions()
Returns the turn-by-turn instruction list.
| ||||||||||
MapPosVector |
getPoints()
Returns the point list of the result.
| ||||||||||
Projection |
getProjection()
Returns the projection of the points in the result.
| ||||||||||
double |
getTotalDistance()
Returns the total distance of the path.
| ||||||||||
double |
getTotalTime()
Returns the approximate total duration of the path.
| ||||||||||
int |
hashCode()
Returns the hash value of this object.
| ||||||||||
String |
toString()
Creates a string representation of this result object, useful for logging.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Constructs a new RoutingResult instance from projection, points and instructions.
projection | The projection of the routing result (same as the request). |
---|---|
points | The point list defining the routing path. Instructions refer to this list. |
instructions | The turn-by-turn instruction list. |
Checks if this object is equal to the specified object.
obj | The reference object. |
---|
Returns the turn-by-turn instruction list.
Returns the point list of the result. The list contains all the points the route must pass in correct order.
Returns the projection of the points in the result.
Returns the total distance of the path.
Returns the approximate total duration of the path.
Returns the hash value of this object.
Creates a string representation of this result object, useful for logging.