|
8 | 8 | #include "engine/guidance/leg_geometry.hpp" |
9 | 9 | #include "engine/guidance/route_step.hpp" |
10 | 10 | #include "engine/guidance/step_maneuver.hpp" |
11 | | -#include "engine/guidance/toolkit.hpp" |
12 | 11 | #include "engine/internal_route_result.hpp" |
13 | 12 | #include "engine/phantom_node.hpp" |
14 | 13 | #include "util/bearing.hpp" |
15 | 14 | #include "util/coordinate.hpp" |
16 | 15 | #include "util/coordinate_calculation.hpp" |
17 | 16 | #include "util/guidance/entry_class.hpp" |
18 | | -#include "util/guidance/toolkit.hpp" |
19 | 17 | #include "util/guidance/turn_lanes.hpp" |
20 | 18 | #include "util/typedefs.hpp" |
21 | 19 |
|
@@ -156,7 +154,7 @@ inline std::vector<RouteStep> assembleSteps(const datafacade::BaseDataFacade &fa |
156 | 154 | intersection.entry.push_back(entry_class.allowsEntry(idx)); |
157 | 155 | } |
158 | 156 | std::int16_t bearing_in_driving_direction = |
159 | | - util::bearing::reverseBearing(std::round(bearings.first)); |
| 157 | + util::reverseBearing(std::round(bearings.first)); |
160 | 158 | maneuver = {intersection.location, |
161 | 159 | bearing_in_driving_direction, |
162 | 160 | bearings.second, |
@@ -216,14 +214,13 @@ inline std::vector<RouteStep> assembleSteps(const datafacade::BaseDataFacade &fa |
216 | 214 | BOOST_ASSERT(segment_index == number_of_segments - 1); |
217 | 215 | bearings = detail::getArriveBearings(leg_geometry); |
218 | 216 |
|
219 | | - intersection = { |
220 | | - target_node.location, |
221 | | - std::vector<short>({static_cast<short>(util::bearing::reverseBearing(bearings.first))}), |
222 | | - std::vector<bool>({true}), |
223 | | - 0, |
224 | | - Intersection::NO_INDEX, |
225 | | - util::guidance::LaneTuple(), |
226 | | - {}}; |
| 217 | + intersection = {target_node.location, |
| 218 | + std::vector<short>({static_cast<short>(util::reverseBearing(bearings.first))}), |
| 219 | + std::vector<bool>({true}), |
| 220 | + 0, |
| 221 | + Intersection::NO_INDEX, |
| 222 | + util::guidance::LaneTuple(), |
| 223 | + {}}; |
227 | 224 |
|
228 | 225 | // This step has length zero, the only reason we need it is the target location |
229 | 226 | maneuver = {intersection.location, |
|
0 commit comments