fix length limited graph walker

This commit is contained in:
Moritz Kobitzsch 2016-11-14 16:36:29 +01:00 committed by Patrick Niklaus
parent 78583d2c8c
commit 538bbd47d1

View File

@ -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)