simplify passing annotation data through OSRM pipeline using the node-based datastore
- separates node-based graph creation and compression from edge-based graph creation - moves usage of edge-based node data-container to pre-processing as well, unifying access to node-based data - single struct instead of separate vectors for annotation data in engine (single place of modification)
This commit is contained in:
committed by
Michael Krasnyk
parent
9b044aaa42
commit
2ddd98ee6d
@@ -55,12 +55,12 @@ std::size_t loadGraph(const std::string &path,
|
||||
continue;
|
||||
}
|
||||
|
||||
if (input_edge.forward)
|
||||
if (input_edge.flags.forward)
|
||||
{
|
||||
graph_edge_list.emplace_back(input_edge.source, input_edge.target);
|
||||
}
|
||||
|
||||
if (input_edge.backward)
|
||||
if (input_edge.flags.backward)
|
||||
{
|
||||
graph_edge_list.emplace_back(input_edge.target, input_edge.source);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user