Skip to content

Commit

Permalink
fix length limited graph walker
Browse files Browse the repository at this point in the history
  • Loading branch information
Moritz Kobitzsch authored and Patrick Niklaus committed Nov 14, 2016
1 parent 78583d2 commit 538bbd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extractor/guidance/node_based_graph_walker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void LengthLimitedCoordinateAccumulator::update(const NodeID from_node,
coordinate_extractor.GetForwardCoordinatesAlongRoad(from_node, via_edge);

const auto length = util::coordinate_calculation::getLength(
coordinates, util::coordinate_calculation::haversineDistance);
current_coordinates, util::coordinate_calculation::haversineDistance);

// in case we get too many coordinates, we limit them to our desired length
if (length + accumulated_length > max_length)
Expand Down

0 comments on commit 538bbd4

Please sign in to comment.