2017-08-01 11:18:12 -04:00
|
|
|
#ifndef OSRM_EXTRACTOR_CONDITIONAL_TURN_PENALTY_HPP_
|
|
|
|
#define OSRM_EXTRACTOR_CONDITIONAL_TURN_PENALTY_HPP_
|
|
|
|
|
|
|
|
#include "util/coordinate.hpp"
|
|
|
|
#include "util/opening_hours.hpp"
|
|
|
|
#include <cstdint>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include <type_traits>
|
|
|
|
|
2022-12-11 04:10:26 -05:00
|
|
|
namespace osrm::extractor
|
2017-08-01 11:18:12 -04:00
|
|
|
{
|
|
|
|
|
|
|
|
struct ConditionalTurnPenalty
|
|
|
|
{
|
|
|
|
// offset into the sequential list of turn penalties (see TurnIndexBlock for reference);
|
|
|
|
std::uint64_t turn_offset;
|
|
|
|
util::Coordinate location;
|
|
|
|
std::vector<util::OpeningHours> conditions;
|
|
|
|
};
|
|
|
|
|
2022-12-20 12:00:11 -05:00
|
|
|
} // namespace osrm::extractor
|
2017-08-01 11:18:12 -04:00
|
|
|
|
|
|
|
#endif // OSRM_EXTRACTOR_CONDITIONAL_TURN_PENALTY_HPP_
|