Package com.graphhopper.util
Class RoundaboutInstruction
java.lang.Object
com.graphhopper.util.Instruction
com.graphhopper.util.RoundaboutInstruction
- Author:
- jansoe
-
Field Summary
Fields inherited from class com.graphhopper.util.Instruction
CONTINUE_ON_STREET, distance, extraInfo, FINISH, IGNORE, KEEP_LEFT, KEEP_RIGHT, LEAVE_ROUNDABOUT, name, points, PT_END_TRIP, PT_START_TRIP, PT_TRANSFER, rawName, REACHED_VIA, sign, time, TURN_LEFT, TURN_RIGHT, TURN_SHARP_LEFT, TURN_SHARP_RIGHT, TURN_SLIGHT_LEFT, TURN_SLIGHT_RIGHT, U_TURN_LEFT, U_TURN_RIGHT, U_TURN_UNKNOWN, UNKNOWN, USE_ROUNDABOUT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
double
boolean
isExited()
setDirOfRotation
(double deltaIn) setExitNumber
(int exitNumber) setRadian
(double radian) The radian value between entrance (in) and exit (out) of this roundabout.Methods inherited from class com.graphhopper.util.Instruction
getDistance, getLength, getName, getPoints, getSign, getTime, setDistance, setExtraInfo, setName, setPoints, setSign, setTime, setUseRawName, toString
-
Constructor Details
-
RoundaboutInstruction
-
-
Method Details
-
increaseExitNumber
-
setDirOfRotation
-
setExited
-
isExited
public boolean isExited() -
getExitNumber
public int getExitNumber() -
setExitNumber
-
getTurnAngle
public double getTurnAngle()- Returns:
- radian of angle -2PI < x < 2PI between roundabout entrance and exit values
- > 0 is for clockwise rotation
- < 0 is for counterclockwise rotation
- NaN if direction of rotation is unclear
-
setRadian
The radian value between entrance (in) and exit (out) of this roundabout. -
getExtraInfoJSON
- Overrides:
getExtraInfoJSON
in classInstruction
-
getTurnDescription
- Overrides:
getTurnDescription
in classInstruction
-