public class RoutingResult
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
swigCMemOwn |
Constructor and Description |
---|
RoutingResult(long cPtr,
boolean cMemoryOwn) |
RoutingResult(Projection projection,
MapPosVector points,
RoutingInstructionVector instructions)
Constructs a new RoutingResult instance from projection, points and instructions.
|
Modifier and Type | Method and Description |
---|---|
void |
delete() |
boolean |
equals(java.lang.Object obj)
Checks if this object is equal to the specified object.
|
protected void |
finalize() |
static long |
getCPtr(RoutingResult obj) |
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.
|
public RoutingResult(long cPtr, boolean cMemoryOwn)
public RoutingResult(Projection projection, MapPosVector points, RoutingInstructionVector 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.public static long getCPtr(RoutingResult obj)
protected void finalize()
finalize
in class java.lang.Object
public void delete()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Projection getProjection()
public MapPosVector getPoints()
public RoutingInstructionVector getInstructions()
public double getTotalDistance()
public double getTotalTime()