Refactors Karen's work a bit

This commit is contained in:
Daniel J. Hofmann
2016-12-21 12:30:56 +01:00
committed by Daniel J. H
parent 8ffe915395
commit 9af67c5a9f
3 changed files with 37 additions and 30 deletions
@@ -15,6 +15,9 @@ namespace extractor
namespace guidance
{
// Suppresses instructions for certain modes.
// Think: ferry route. This handler suppresses all instructions while on the ferry route.
// We don't want to announce "Turn Right", "Turn Left" while on ferries, as one example.
class SuppressModeHandler final : public IntersectionHandler
{
public:
@@ -26,15 +29,13 @@ class SuppressModeHandler final : public IntersectionHandler
~SuppressModeHandler() override final = default;
bool canProcess(const NodeID /*nid*/,
bool canProcess(const NodeID nid,
const EdgeID via_eid,
const Intersection &intersection) const override final;
Intersection operator()(const NodeID nid,
const EdgeID via_eid,
Intersection intersection) const override final;
using SuppressModeListT = std::array<osrm::extractor::TravelMode, 2>;
};
} // namespace osrm