Split intersection analysis and guidance code
Intersection analysis occupy in osrm::extractor::intersection namespace and guidance code osrm::guidance
This commit is contained in:
+8
-10
@@ -64,7 +64,7 @@ inline void print(const std::vector<engine::guidance::RouteStep> &steps)
|
||||
}
|
||||
}
|
||||
|
||||
inline void print(const extractor::guidance::Intersection &intersection)
|
||||
inline void print(const osrm::guidance::Intersection &intersection)
|
||||
{
|
||||
std::cout << " Intersection:\n";
|
||||
for (const auto &road : intersection)
|
||||
@@ -73,7 +73,7 @@ inline void print(const extractor::guidance::Intersection &intersection)
|
||||
}
|
||||
|
||||
inline void print(const NodeBasedDynamicGraph &node_based_graph,
|
||||
const extractor::guidance::Intersection &intersection)
|
||||
const osrm::guidance::Intersection &intersection)
|
||||
{
|
||||
std::cout << " Intersection:\n";
|
||||
for (const auto &road : intersection)
|
||||
@@ -86,22 +86,20 @@ inline void print(const NodeBasedDynamicGraph &node_based_graph,
|
||||
std::cout << std::flush;
|
||||
}
|
||||
|
||||
inline void print(const extractor::guidance::lanes::LaneDataVector &turn_lane_data)
|
||||
inline void print(const osrm::guidance::lanes::LaneDataVector &turn_lane_data)
|
||||
{
|
||||
std::cout << " Tags:\n";
|
||||
for (auto entry : turn_lane_data)
|
||||
std::cout << "\t" << entry.tag << "("
|
||||
<< extractor::guidance::TurnLaneType::toString(entry.tag)
|
||||
std::cout << "\t" << entry.tag << "(" << extractor::TurnLaneType::toString(entry.tag)
|
||||
<< ") from: " << static_cast<int>(entry.from)
|
||||
<< " to: " << static_cast<int>(entry.to) << "\n";
|
||||
std::cout << std::flush;
|
||||
}
|
||||
|
||||
inline void
|
||||
printTurnAssignmentData(const NodeID at,
|
||||
const extractor::guidance::lanes::LaneDataVector &turn_lane_data,
|
||||
const extractor::guidance::Intersection &intersection,
|
||||
const std::vector<extractor::QueryNode> &node_info_list)
|
||||
inline void printTurnAssignmentData(const NodeID at,
|
||||
const osrm::guidance::lanes::LaneDataVector &turn_lane_data,
|
||||
const osrm::guidance::Intersection &intersection,
|
||||
const std::vector<extractor::QueryNode> &node_info_list)
|
||||
{
|
||||
std::cout << "[Turn Assignment Progress]\nLocation:";
|
||||
auto coordinate = node_info_list[at];
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
#include "extractor/class_data.hpp"
|
||||
#include "extractor/node_based_edge.hpp"
|
||||
#include "extractor/node_data_container.hpp"
|
||||
#include "guidance/road_classification.hpp"
|
||||
#include "util/dynamic_graph.hpp"
|
||||
#include "util/graph_utils.hpp"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user