Special case of heading 202.5 not properly handled and defaulted to "N".

This commit is contained in:
DennisOSRM 2012-02-07 18:22:31 +01:00
parent bd67e7a4ed
commit 9da873330a

View File

@ -27,7 +27,7 @@ or see http://www.gnu.org/licenses/agpl.txt.
struct Azimuth { struct Azimuth {
static std::string Get(const double heading) { static std::string Get(const double heading) {
if(heading < 202.5) { if(heading <= 202.5) {
if(heading > 0 && heading <= 22.5) if(heading > 0 && heading <= 22.5)
return "N"; return "N";
if(heading > 22.5 && heading <= 67.5) if(heading > 22.5 && heading <= 67.5)