osrm-backend/include/engine/guidance/lane_processing.hpp

23 lines
821 B
C++
Raw Normal View History

2016-06-15 08:38:24 -04:00
#ifndef OSRM_ENGINE_GUIDANCE_LANE_PROCESSING_HPP_
#define OSRM_ENGINE_GUIDANCE_LANE_PROCESSING_HPP_
#include "engine/guidance/route_step.hpp"
#include <vector>
2016-06-15 08:38:24 -04:00
namespace osrm::engine::guidance
2016-06-15 08:38:24 -04:00
{
// Constrains lanes for multi-hop situations where lane changes depend on earlier ones.
// Instead of forcing users to change lanes rapidly in a short amount of time,
// we anticipate lane changes emitting only matching lanes early on.
// the second parameter describes the duration that we feel two segments need to be apart to count
// as separate maneuvers.
[[nodiscard]] std::vector<RouteStep>
anticipateLaneChange(std::vector<RouteStep> steps,
const double min_distance_needed_for_lane_change = 200);
2016-06-15 08:38:24 -04:00
2022-12-20 12:00:11 -05:00
} // namespace osrm::engine::guidance
2016-06-15 08:38:24 -04:00
#endif /* OSRM_ENGINE_GUIDANCE_LANE_PROCESSING_HPP_ */