Use duration in SegmentBlock for duration updates

This commit is contained in:
Michael Krasnyk
2017-01-24 09:24:44 +01:00
committed by Patrick Niklaus
parent 25baf51a2c
commit 6b143c5e1d
4 changed files with 64 additions and 16 deletions
+4 -2
View File
@@ -599,8 +599,10 @@ void EdgeBasedGraphFactory::GenerateEdgeExpandedEdges(
const double segment_length =
util::coordinate_calculation::greatCircleDistance(from, to);
lookup::SegmentBlock nodeblock = {
to.node_id, segment_length, target_node.weight};
lookup::SegmentBlock nodeblock{to.node_id,
segment_length,
target_node.weight,
target_node.duration};
edge_segment_file.write(reinterpret_cast<const char *>(&nodeblock),
sizeof(nodeblock));