public class RoutingInstruction
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
swigCMemOwn |
Constructor and Description |
---|
RoutingInstruction()
Constructs a new RoutingInstruction instance with all values set to default.
|
RoutingInstruction(long cPtr,
boolean cMemoryOwn) |
RoutingInstruction(RoutingAction action,
int pointIndex,
java.lang.String streetName,
float turnAngle,
float azimuth,
double distance,
double time)
Constructs a new RoutingInstruction instance given all instruction attributes.
|
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() |
RoutingAction |
getAction()
Returns the action of the instruction.
|
float |
getAzimuth()
Returns the azimuth of the initial position.
|
static long |
getCPtr(RoutingInstruction obj) |
double |
getDistance()
Returns the distance to move along the given street.
|
int |
getPointIndex()
Returns the index of the first geometry point in external point array.
|
java.lang.String |
getStreetName()
Returns the name of street.
|
double |
getTime()
Returns the time approximate duration of the instruction.
|
float |
getTurnAngle()
Returns the turn angle of the action.
|
int |
hashCode()
Returns the hash value of this object.
|
java.lang.String |
toString()
Creates a string representation of this instruction, useful for logging.
|
public RoutingInstruction(long cPtr, boolean cMemoryOwn)
public RoutingInstruction()
public RoutingInstruction(RoutingAction action, int pointIndex, java.lang.String streetName, float turnAngle, float azimuth, double distance, double time)
action
- Action to take.pointIndex
- Instruction starting point index in the point list.streetName
- Street name.turnAngle
- Turn angle in degrees.azimuth
- Azimuth in degrees.distance
- The distance to move along the given street in meters.time
- The approximate duration of the instruction in seconds.public static long getCPtr(RoutingInstruction 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 RoutingAction getAction()
public int getPointIndex()
public java.lang.String getStreetName()
public float getTurnAngle()
public float getAzimuth()
public double getDistance()
public double getTime()
public java.lang.String toString()
toString
in class java.lang.Object