osrm-backend/include/engine/guidance/step_maneuver.hpp

48 lines
902 B
C++
Raw Normal View History

2016-01-28 10:28:44 -05:00
#ifndef ENGINE_GUIDANCE_STEP_MANEUVER_HPP
#define ENGINE_GUIDANCE_STEP_MANEUVER_HPP
2016-03-01 16:30:31 -05:00
#include "extractor/guidance/turn_instruction.hpp"
#include "util/coordinate.hpp"
2016-01-28 10:28:44 -05:00
#include <cstdint>
#include <vector>
2016-01-28 10:28:44 -05:00
namespace osrm
{
namespace engine
{
namespace guidance
{
enum class WaypointType : std::uint8_t
{
None,
Arrive,
Depart,
};
2016-01-28 10:28:44 -05:00
struct StepManeuver
{
util::Coordinate location;
short bearing_before;
short bearing_after;
2016-03-01 16:30:31 -05:00
extractor::guidance::TurnInstruction instruction;
WaypointType waypoint_type;
2016-02-24 04:29:23 -05:00
unsigned exit;
2016-01-28 10:28:44 -05:00
};
inline StepManeuver getInvalidStepManeuver()
{
return {util::Coordinate{util::FloatLongitude{0.0}, util::FloatLatitude{0.0}},
0,
0,
extractor::guidance::TurnInstruction::NO_TURN(),
WaypointType::None,
0};
}
2016-02-24 04:29:23 -05:00
} // namespace guidance
} // namespace engine
} // namespace osrmn
2016-01-28 10:28:44 -05:00
#endif