2017-02-15 09:12:24 -05:00
|
|
|
#ifndef OSRM_ENGINE_GUIDANCE_VERBOSITY_REDUCTION_HPP_
|
|
|
|
#define OSRM_ENGINE_GUIDANCE_VERBOSITY_REDUCTION_HPP_
|
|
|
|
|
|
|
|
#include "engine/guidance/route_step.hpp"
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
2022-12-11 04:10:26 -05:00
|
|
|
namespace osrm::engine::guidance
|
2017-02-15 09:12:24 -05:00
|
|
|
{
|
|
|
|
|
|
|
|
// Name changes on roads are posing relevant information. However if they are short, we don't want
|
|
|
|
// to announce them. All these that are not collapsed into a single turn (think segregated
|
|
|
|
// intersection) have to be checked for the length they are active in. If they are active for a
|
|
|
|
// short distance only, we don't announce them
|
2024-05-24 14:34:04 -04:00
|
|
|
[[nodiscard]] std::vector<RouteStep> suppressShortNameSegments(std::vector<RouteStep> steps);
|
2017-02-15 09:12:24 -05:00
|
|
|
|
2022-12-20 12:00:11 -05:00
|
|
|
} // namespace osrm::engine::guidance
|
2017-02-15 09:12:24 -05:00
|
|
|
|
|
|
|
#endif /* OSRM_ENGINE_GUIDANCE_VERBOSITY_REDUCTION_HPP_ */
|