Fix formating for cherry-picked commit
This commit is contained in:
parent
66cc99703c
commit
cc0c28f366
@ -558,9 +558,10 @@ Status TilePlugin::HandleRequest(const std::shared_ptr<const datafacade::BaseDat
|
|||||||
const auto sum_node_weight = std::accumulate(approach_weight_vector.begin(),
|
const auto sum_node_weight = std::accumulate(approach_weight_vector.begin(),
|
||||||
approach_weight_vector.end(),
|
approach_weight_vector.end(),
|
||||||
EdgeWeight{0});
|
EdgeWeight{0});
|
||||||
const auto sum_node_duration = std::accumulate(approach_duration_vector.begin(),
|
const auto sum_node_duration =
|
||||||
approach_duration_vector.end(),
|
std::accumulate(approach_duration_vector.begin(),
|
||||||
EdgeWeight{0});
|
approach_duration_vector.end(),
|
||||||
|
EdgeWeight{0});
|
||||||
|
|
||||||
// The edge.weight is the whole edge weight, which includes the turn
|
// The edge.weight is the whole edge weight, which includes the turn
|
||||||
// cost.
|
// cost.
|
||||||
@ -619,8 +620,11 @@ Status TilePlugin::HandleRequest(const std::shared_ptr<const datafacade::BaseDat
|
|||||||
// Save everything we need to later add all the points to the tile.
|
// Save everything we need to later add all the points to the tile.
|
||||||
// We need the coordinate of the intersection, the angle in, the turn
|
// We need the coordinate of the intersection, the angle in, the turn
|
||||||
// angle and the turn cost.
|
// angle and the turn cost.
|
||||||
all_turn_data.emplace_back(
|
all_turn_data.emplace_back(coord_via,
|
||||||
coord_via, angle_in_index, turn_angle_index, turn_weight_index, turn_duration_index);
|
angle_in_index,
|
||||||
|
turn_angle_index,
|
||||||
|
turn_weight_index,
|
||||||
|
turn_duration_index);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -264,7 +264,7 @@ BOOST_AUTO_TEST_CASE(test_tile_turns)
|
|||||||
BOOST_CHECK_EQUAL(*iter++, 2); // cost key
|
BOOST_CHECK_EQUAL(*iter++, 2); // cost key
|
||||||
found_penalties_indexes.push_back(*iter++); // skip value check, can be valud uint32
|
found_penalties_indexes.push_back(*iter++); // skip value check, can be valud uint32
|
||||||
BOOST_CHECK_EQUAL(*iter++, 3); // weight key
|
BOOST_CHECK_EQUAL(*iter++, 3); // weight key
|
||||||
found_weight_indexes.push_back(*iter++); // skip value check, can be valud uint32
|
found_weight_indexes.push_back(*iter++); // skip value check, can be valud uint32
|
||||||
BOOST_CHECK(iter == feature_iter_pair.end());
|
BOOST_CHECK(iter == feature_iter_pair.end());
|
||||||
// geometry
|
// geometry
|
||||||
feature_message.next();
|
feature_message.next();
|
||||||
|
Loading…
Reference in New Issue
Block a user