Destination now shows up in turn instructions

This commit is contained in:
DennisOSRM
2012-03-16 13:25:23 +01:00
parent 3712868831
commit 17738c3861
2 changed files with 19 additions and 1 deletions
+16
View File
@@ -147,6 +147,22 @@ public:
if(segment.necessary)
++prefixSumOfNecessarySegments;
}
reply.content += ",[\"";
reply.content += TurnInstructions.TurnStrings[TurnInstructions.ReachedYourDestination];
reply.content += "\",\"";
reply.content += "\",";
reply.content += "0";
reply.content += ",";
intToString(prefixSumOfNecessarySegments-1, tmpLength);
reply.content += tmpLength;
reply.content += ",";
reply.content += "0";
reply.content += ",\"";
reply.content += "\",\"";
reply.content += Azimuth::Get(0.0);
reply.content += "\",";
reply.content += "0.0";
reply.content += "]";
}
reply.content += "],";
//list all viapoints so that the client may display it