diff --git a/include/engine/api/route_parameters.hpp b/include/engine/api/route_parameters.hpp index bca6e4d1a..0c2d1e31e 100644 --- a/include/engine/api/route_parameters.hpp +++ b/include/engine/api/route_parameters.hpp @@ -69,6 +69,21 @@ struct RouteParameters : public BaseParameters RouteParameters() = default; + template + RouteParameters(const bool steps_, + const bool alternatives_, + const GeometriesType geometries_, + const OverviewType overview_, + const boost::optional continue_straight_, + Args... args_) + : BaseParameters{std::forward(args_)...}, steps{steps_}, alternatives{alternatives_}, + annotations{false}, geometries{geometries_}, overview{overview_}, + continue_straight{continue_straight_} + // Once we perfectly-forward `args` (see #2990) this constructor can delegate to the one below. + { + } + + // RouteParameters constructor adding the `annotations` setting in a API-compatible way. template RouteParameters(const bool steps_, const bool alternatives_,