From 12c547126ef93efe64569dbcb317a9a75b445cbf Mon Sep 17 00:00:00 2001 From: DennisOSRM Date: Thu, 9 Feb 2012 11:22:32 +0100 Subject: [PATCH] Fixes issue #111 where heading 0 was incorrectly mapped to South. --- Util/Azimuth.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Util/Azimuth.h b/Util/Azimuth.h index 6d12673bc..166f55fdf 100644 --- a/Util/Azimuth.h +++ b/Util/Azimuth.h @@ -28,7 +28,7 @@ or see http://www.gnu.org/licenses/agpl.txt. struct Azimuth { static std::string Get(const double heading) { if(heading <= 202.5) { - if(heading > 0 && heading <= 22.5) + if(heading >= 0 && heading <= 22.5) return "N"; if(heading > 22.5 && heading <= 67.5) return "NE";