don't assign exit in arrive when ending in roundabout

This commit is contained in:
Moritz Kobitzsch
2016-12-21 09:33:15 +01:00
parent 3b2ca720a8
commit dff7fe214b
4 changed files with 11 additions and 3 deletions
@@ -259,6 +259,8 @@ inline std::vector<RouteStep> assembleSteps(const datafacade::BaseDataFacade &fa
BOOST_ASSERT(steps.back().intersections.front().lanes.first_lane_from_the_right ==
INVALID_LANEID);
BOOST_ASSERT(steps.back().intersections.front().lane_description.empty());
// depart and arrive need to be trivial
BOOST_ASSERT(steps.front().maneuver.exit == 0 && steps.back().maneuver.exit == 0);
return steps;
}
+1
View File
@@ -29,6 +29,7 @@ inline void print(const engine::guidance::RouteStep &step)
<< " "
<< " Duration: " << step.duration << " Distance: " << step.distance
<< " Geometry: " << step.geometry_begin << " " << step.geometry_end
<< " Exit: " << step.maneuver.exit
<< "\n\tIntersections: " << step.intersections.size() << " [";
for (const auto &intersection : step.intersections)