Bearing is reported as integer only, fixes cucumber tests for issue #292

This commit is contained in:
DennisOSRM
2012-06-11 16:36:33 +02:00
parent b7bcc401e7
commit df68c3ad48
5 changed files with 46 additions and 29 deletions
+6 -6
View File
@@ -31,19 +31,19 @@ struct Azimuth {
if(heading >= 0 && heading <= 22.5)
return "N";
if(heading > 22.5 && heading <= 67.5)
return "NW";
return "NE";
if(heading > 67.5 && heading <= 112.5)
return "W";
return "E";
if(heading > 112.5 && heading <= 157.5)
return "SW";
return "SE";
return "S";
}
if(heading > 202.5 && heading <= 247.5)
return "SE";
return "SW";
if(heading > 247.5 && heading <= 292.5)
return "E";
return "W";
if(heading > 292.5 && heading <= 337.5)
return "NE";
return "NW";
return "N";
}
};