* optionally include condition and via node coords in InputRestrictionContainer * only write conditionals to disk, custom serialization for restrictions * conditional turn lookup, reuse timezone validation from extract-conditionals * adapt updater to use coordinates/osm ids, remove internal to external map * add utc time now parameter to contraction * only compile timezone code where libshp is found, adapt test running * slight refactor, more tests * catch invalid via nodes in restriction parsing, set default cucumber origin to guinée * add another run to test mld routed paths * cosmetic review changes * Simplify Timezoner for windows build * Split declaration and parsing parts for opening hours * adjust conditional tests to run without shapefiles * always include parse conditionals option * Adjust travis timeout * Added dummy TZ shapefile with test timezone polygons * [skip ci] update changelog
28 lines
632 B
C++
28 lines
632 B
C++
#ifndef OSRM_CONDITIONAL_RESTRICTIONS_HPP
|
|
#define OSRM_CONDITIONAL_RESTRICTIONS_HPP
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
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;
|
|
};
|
|
|
|
std::vector<ConditionalRestriction> ParseConditionalRestrictions(const std::string &str);
|
|
|
|
} // util
|
|
} // osrm
|
|
|
|
#endif // OSRM_CONDITIONAL_RESTRICTIONS_HPP
|