public class FinishInstruction 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 |
---|
FinishInstruction(double lat,
double lon,
double ele) |
FinishInstruction(PointAccess pointAccess,
int node) |
FinishInstruction(String name,
double lat,
double lon,
double ele) |
FinishInstruction(String name,
PointAccess pointAccess,
int node) |
Modifier and Type | Method and Description |
---|---|
int |
getLength()
This method returns the length of an Instruction.
|
String |
getTurnDescription(Translation tr) |
calcAzimuth, getAnnotation, getDistance, getExtraInfoJSON, getName, getPoints, getSign, getTime, setDistance, setExtraInfo, setName, setPoints, setSign, setTime, setUseRawName, toString
public FinishInstruction(String name, double lat, double lon, double ele)
public FinishInstruction(double lat, double lon, double ele)
public FinishInstruction(String name, PointAccess pointAccess, int node)
public FinishInstruction(PointAccess pointAccess, int node)
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 String getTurnDescription(Translation tr)
getTurnDescription
in class Instruction
Copyright © 2012–2018. All rights reserved.