From c45e2cbb825ad70b903e83a7bb36d8a2b30a771e Mon Sep 17 00:00:00 2001 From: DennisOSRM Date: Mon, 19 Mar 2012 11:49:52 +0100 Subject: [PATCH] Reworking the logic to accept only tracks with access=yes. --- DataStructures/ExtractorCallBacks.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DataStructures/ExtractorCallBacks.h b/DataStructures/ExtractorCallBacks.h index 211c6b1a9..c8713b79b 100644 --- a/DataStructures/ExtractorCallBacks.h +++ b/DataStructures/ExtractorCallBacks.h @@ -175,8 +175,8 @@ public: } //Is the highway tag listed as usable way? - if(("track" == highway && ("yes" == access || "yes" == accessTag)) || (0 < settings[highway] || "yes" == accessTag || "designated" == accessTag)) { - if(!w.isDurationSet) { + if(("track" == highway && ("yes" == access || "yes" == accessTag)) || ("track" != highway && (0 < settings[highway] || "yes" == accessTag || "designated" == accessTag) )) { + if(!w.isDurationSet) { if(0 < settings[highway]) { if(0 < maxspeed) w.speed = std::min(maxspeed, settings[highway]);