Hello
when the graphhopper calculates the path between source and destination, i want to shows the instructions about that path.
but it just shows the first and last instruction as described in below:
Continue
3219.638
217220
***** instruction*****
Finish!
0.0
0
but when i see the list of points, it contains the true points.
my code is :
InstructionList il = shp.getInstructions();
List<Map<String, Object>> resultJson = il.createJson();
int NumberOfInstruction = resultJson.size();
for (int i = 0; i < NumberOfInstruction; i++) {
System.out.println(resultJson.get(i).get(“text”));
System.out.println(resultJson.get(i).get(“distance”));
System.out.println(resultJson.get(i).get(“time”));
System.out.println("***** instruction*****");
}
}