Adapt lane dump to lanes at intersection (#2675), resolves #2709

This commit is contained in:
Daniel J. Hofmann 2016-08-02 15:09:09 +02:00
parent 026f71934b
commit b24f5c7c1a
2 changed files with 7 additions and 2 deletions

View File

@ -20,11 +20,13 @@ namespace guidance
{ {
inline void print(const engine::guidance::RouteStep &step) inline void print(const engine::guidance::RouteStep &step)
{ {
const auto lanes = step.intersections.front().lanes;
std::cout << static_cast<int>(step.maneuver.instruction.type) << " " std::cout << static_cast<int>(step.maneuver.instruction.type) << " "
<< static_cast<int>(step.maneuver.instruction.direction_modifier) << " " << static_cast<int>(step.maneuver.instruction.direction_modifier) << " "
<< static_cast<int>(step.maneuver.waypoint_type) << " " << static_cast<int>(step.maneuver.waypoint_type) << " "
<< " Lanes: (" << static_cast<int>(step.maneuver.lanes.lanes_in_turn) << ", " << " Lanes: (" << static_cast<int>(lanes.lanes_in_turn) << ", "
<< static_cast<int>(step.maneuver.lanes.first_lane_from_the_right) << ")" << static_cast<int>(lanes.first_lane_from_the_right) << ")"
<< " Duration: " << step.duration << " Distance: " << step.distance << " Duration: " << step.duration << " Distance: " << step.distance
<< " Geometry: " << step.geometry_begin << " " << step.geometry_end << " Geometry: " << step.geometry_begin << " " << step.geometry_end
<< " exit: " << step.maneuver.exit << " Intersections: " << step.intersections.size() << " exit: " << step.maneuver.exit << " Intersections: " << step.intersections.size()

View File

@ -22,6 +22,9 @@
#include "util/static_graph.hpp" #include "util/static_graph.hpp"
#include "util/static_rtree.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 "extractor/tarjan_scc.hpp"
#include <boost/filesystem.hpp> #include <boost/filesystem.hpp>