public class InstructionList extends AbstractList<Instruction>
modCount| Constructor and Description |
|---|
InstructionList(int cap,
Translation tr) |
InstructionList(Translation tr) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
Instruction element) |
String |
createGPX(String version)
Creates the standard GPX string out of the points according to the schema found here:
https://graphhopper.com/public/schema/gpx-1.1.xsd
|
String |
createGPX(String trackName,
long startTimeMillis,
boolean includeElevation,
boolean withRoute,
boolean withTrack,
boolean withWayPoints,
String version) |
String |
createGPX(String trackName,
long startTimeMillis,
String version) |
List<GPXEntry> |
createGPXList() |
List<Map<String,Object>> |
createJson() |
void |
createRteptBlock(StringBuilder output,
Instruction instruction,
Instruction nextI,
DecimalFormat decimalFormat) |
Instruction |
find(double lat,
double lon,
double maxDistance)
This method is useful for navigation devices to find the next instruction for the specified
coordinate (e.g.
|
Instruction |
get(int index) |
Instruction |
remove(int index) |
void |
replaceLast(Instruction instr) |
Instruction |
set(int index,
Instruction element) |
int |
size() |
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArrayparallelStream, removeIf, streampublic InstructionList(Translation tr)
public InstructionList(int cap,
Translation tr)
public int size()
size in interface Collection<Instruction>size in interface List<Instruction>size in class AbstractCollection<Instruction>public Instruction get(int index)
get in interface List<Instruction>get in class AbstractList<Instruction>public Instruction set(int index, Instruction element)
set in interface List<Instruction>set in class AbstractList<Instruction>public void add(int index,
Instruction element)
add in interface List<Instruction>add in class AbstractList<Instruction>public Instruction remove(int index)
remove in interface List<Instruction>remove in class AbstractList<Instruction>public void replaceLast(Instruction instr)
public List<GPXEntry> createGPXList()
public String createGPX(String version)
public String createGPX(String trackName, long startTimeMillis, boolean includeElevation, boolean withRoute, boolean withTrack, boolean withWayPoints, String version)
public void createRteptBlock(StringBuilder output, Instruction instruction, Instruction nextI, DecimalFormat decimalFormat)
public Instruction find(double lat, double lon, double maxDistance)
maxDistance - the maximum acceptable distance to the instruction (in meter)Copyright © 2012–2018. All rights reserved.