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
+3 -1
View File
@@ -41,8 +41,9 @@ struct TurnInstructionsClass {
const static short LeaveRoundAbout = 12;
const static short StayOnRoundAbout = 13;
const static short StartAtEndOfStreet = 14;
const static short ReachedYourDestination = 15;
std::string TurnStrings[15];
std::string TurnStrings[16];
std::string Ordinals[12];
//This is a hack until c++0x is available enough to use initializer lists.
@@ -62,6 +63,7 @@ struct TurnInstructionsClass {
TurnStrings[12] = "Leave roundabout";
TurnStrings[13] = "Stay on roundabout";
TurnStrings[14] = "Start";
TurnStrings[15] = "You have reached your destination";
Ordinals[0] = "zeroth";
Ordinals[1] = "first";