#ifndef MANEUVER_OVERRIDE_RELATION_PARSER_HPP #define MANEUVER_OVERRIDE_RELATION_PARSER_HPP #include "maneuver_override.hpp" #include #include #include namespace osmium { class Relation; } namespace osrm { namespace extractor { class ScriptingEnvironment; /** * Parses the relations that represents maneuver overrides. * These are structured similarly to turn restrictions, with some slightly * different fields. * * Simple, via-node overrides (the maneuver at the "via" point is overridden) * * * * * * * * * * Via-way descriptions are also supported - this is helpful if * you only want to update an instruction if a certain sequence of * road transitions are taken. * * * * * * * * * * * * For via-way restrictions, ways must be connected end-to-end, i.e. * referenced ways must be split if the turn points are partway * along the original way. * */ class ManeuverOverrideRelationParser { public: ManeuverOverrideRelationParser(); boost::optional TryParse(const osmium::Relation &relation) const; }; } } #endif /* RESTRICTION_PARSER_HPP */