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
+4 -2
View File
@@ -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<int>(step.maneuver.instruction.type) << " "
<< static_cast<int>(step.maneuver.instruction.direction_modifier) << " "
<< static_cast<int>(step.maneuver.waypoint_type) << " "
<< " Lanes: (" << static_cast<int>(step.maneuver.lanes.lanes_in_turn) << ", "
<< static_cast<int>(step.maneuver.lanes.first_lane_from_the_right) << ")"
<< " Lanes: (" << static_cast<int>(lanes.lanes_in_turn) << ", "
<< static_cast<int>(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()