clang-format
This commit is contained in:
parent
7922a6172a
commit
ac23e3b223
@ -342,7 +342,8 @@ void trimShortSegments(std::vector<RouteStep> &steps, LegGeometry &geometry)
|
|||||||
auto &first_step = steps.front();
|
auto &first_step = steps.front();
|
||||||
auto bearing = first_bearing;
|
auto bearing = first_bearing;
|
||||||
// we changed the geometry, we need to recalculate the bearing
|
// we changed the geometry, we need to recalculate the bearing
|
||||||
if (geometry.locations[first_step.geometry_begin] != geometry.locations[first_step.geometry_begin + 1])
|
if (geometry.locations[first_step.geometry_begin] !=
|
||||||
|
geometry.locations[first_step.geometry_begin + 1])
|
||||||
{
|
{
|
||||||
bearing = std::round(util::coordinate_calculation::bearing(
|
bearing = std::round(util::coordinate_calculation::bearing(
|
||||||
geometry.locations[first_step.geometry_begin],
|
geometry.locations[first_step.geometry_begin],
|
||||||
|
Loading…
Reference in New Issue
Block a user