MCPcopy Create free account
hub / github.com/Project-OSRM/osrm-backend / isValidModifier

Function isValidModifier

include/engine/api/json_factory.hpp:33–37  ·  view source on GitHub ↗

Check whether to include a modifier in the result of the API

Source from the content-addressed store, hash-verified

31
32// Check whether to include a modifier in the result of the API
33inline bool isValidModifier(const guidance::StepManeuver maneuver)
34{
35 return (maneuver.waypoint_type == guidance::WaypointType::None ||
36 maneuver.instruction.direction_modifier != osrm::guidance::DirectionModifier::UTurn);
37}
38
39inline bool hasValidLanes(const guidance::IntermediateIntersection &intersection)
40{

Callers 2

makeStepManeuverFunction · 0.85
MakeFBStepMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected