2016-12-15 05:54:13 -05:00
|
|
|
#ifndef OSRM_CONDITIONAL_RESTRICTIONS_HPP
|
|
|
|
#define OSRM_CONDITIONAL_RESTRICTIONS_HPP
|
|
|
|
|
2017-05-11 06:13:52 -04:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
2016-12-15 05:54:13 -05:00
|
|
|
|
|
|
|
namespace osrm
|
|
|
|
{
|
|
|
|
namespace util
|
|
|
|
{
|
|
|
|
|
|
|
|
// Helper functions for OSM conditional restrictions
|
|
|
|
// http://wiki.openstreetmap.org/wiki/Conditional_restrictions
|
|
|
|
// Consitional restrictions is a vector of ConditionalRestriction
|
|
|
|
// with a restriction value and a condition string
|
|
|
|
struct ConditionalRestriction
|
|
|
|
{
|
|
|
|
std::string value;
|
|
|
|
std::string condition;
|
|
|
|
};
|
|
|
|
|
2017-05-11 06:13:52 -04:00
|
|
|
std::vector<ConditionalRestriction> ParseConditionalRestrictions(const std::string &str);
|
2016-12-15 05:54:13 -05:00
|
|
|
|
2020-11-26 10:21:39 -05:00
|
|
|
} // namespace util
|
|
|
|
} // namespace osrm
|
2016-12-15 05:54:13 -05:00
|
|
|
|
|
|
|
#endif // OSRM_CONDITIONAL_RESTRICTIONS_HPP
|