2016-01-28 10:28:44 -05:00
|
|
|
#ifndef ENGINE_GUIDANCE_STEP_MANEUVER_HPP
|
|
|
|
#define ENGINE_GUIDANCE_STEP_MANEUVER_HPP
|
|
|
|
|
|
|
|
#include "util/coordinate.hpp"
|
2016-03-01 16:30:31 -05:00
|
|
|
#include "extractor/guidance/turn_instruction.hpp"
|
2016-01-28 10:28:44 -05:00
|
|
|
|
2016-03-10 05:22:45 -05:00
|
|
|
#include <cstdint>
|
|
|
|
|
2016-01-28 10:28:44 -05:00
|
|
|
namespace osrm
|
|
|
|
{
|
|
|
|
namespace engine
|
|
|
|
{
|
|
|
|
namespace guidance
|
|
|
|
{
|
|
|
|
|
2016-03-10 05:22:45 -05:00
|
|
|
enum class WaypointType : std::uint8_t
|
|
|
|
{
|
|
|
|
None,
|
|
|
|
Arrive,
|
|
|
|
Depart,
|
|
|
|
};
|
|
|
|
|
2016-01-28 10:28:44 -05:00
|
|
|
struct StepManeuver
|
|
|
|
{
|
2016-02-23 15:23:13 -05:00
|
|
|
util::Coordinate location;
|
2016-02-22 16:09:50 -05:00
|
|
|
double bearing_before;
|
|
|
|
double bearing_after;
|
2016-03-01 16:30:31 -05:00
|
|
|
extractor::guidance::TurnInstruction instruction;
|
2016-03-10 05:22:45 -05:00
|
|
|
WaypointType waypoint_type;
|
2016-02-24 04:29:23 -05:00
|
|
|
unsigned exit;
|
2016-01-28 10:28:44 -05:00
|
|
|
};
|
2016-02-24 04:29:23 -05:00
|
|
|
} // namespace guidance
|
|
|
|
} // namespace engine
|
|
|
|
} // namespace osrmn
|
2016-01-28 10:28:44 -05:00
|
|
|
#endif
|