diff --git a/include/util/debug.hpp b/include/util/debug.hpp index 843ec28fd..de16cc7be 100644 --- a/include/util/debug.hpp +++ b/include/util/debug.hpp @@ -20,11 +20,13 @@ namespace guidance { inline void print(const engine::guidance::RouteStep &step) { + const auto lanes = step.intersections.front().lanes; + std::cout << static_cast(step.maneuver.instruction.type) << " " << static_cast(step.maneuver.instruction.direction_modifier) << " " << static_cast(step.maneuver.waypoint_type) << " " - << " Lanes: (" << static_cast(step.maneuver.lanes.lanes_in_turn) << ", " - << static_cast(step.maneuver.lanes.first_lane_from_the_right) << ")" + << " Lanes: (" << static_cast(lanes.lanes_in_turn) << ", " + << static_cast(lanes.first_lane_from_the_right) << ")" << " Duration: " << step.duration << " Distance: " << step.distance << " Geometry: " << step.geometry_begin << " " << step.geometry_end << " exit: " << step.maneuver.exit << " Intersections: " << step.intersections.size() diff --git a/src/extractor/extractor.cpp b/src/extractor/extractor.cpp index e282c798e..00f44d52d 100644 --- a/src/extractor/extractor.cpp +++ b/src/extractor/extractor.cpp @@ -22,6 +22,9 @@ #include "util/static_graph.hpp" #include "util/static_rtree.hpp" +// Keep debug include to make sure the debug header is in sync with types. +#include "util/debug.hpp" + #include "extractor/tarjan_scc.hpp" #include