public class ViaInstruction extends Instruction
annotation, 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 and Description |
---|
ViaInstruction(Instruction instr) |
ViaInstruction(String name,
InstructionAnnotation ia,
PointList pl) |
Modifier and Type | Method and Description |
---|---|
int |
getLength()
This method returns the length of an Instruction.
|
String |
getTurnDescription(Translation tr) |
int |
getViaCount() |
void |
setViaCount(int count) |
calcAzimuth, calcDirection, getAnnotation, getDistance, getExtraInfoJSON, getName, getPoints, getSign, getTime, setDistance, setExtraInfo, setName, setPoints, setSign, setTime, setUseRawName, toString
public ViaInstruction(String name, InstructionAnnotation ia, PointList pl)
public ViaInstruction(Instruction instr)
public int getLength()
Instruction
In general this will just resolve to the size of the PointList, except for ViaInstruction
and
FinishInstruction
, which are only virtual instructions, in a sense that they don't provide
a turn instruction, but only an info ("reached via point or destination").
See #1216 and #1138
getLength
in class Instruction
public int getViaCount()
public void setViaCount(int count)
public String getTurnDescription(Translation tr)
getTurnDescription
in class Instruction
Copyright © 2012–2020. All rights reserved.