committed by
GitHub
parent
59953172e8
commit
3d2db20777
@@ -9,15 +9,12 @@ namespace osrm
|
||||
{
|
||||
namespace guidance
|
||||
{
|
||||
namespace
|
||||
{
|
||||
const double bearing_scale = 360.0 / 256.0;
|
||||
}
|
||||
|
||||
#pragma pack(push, 1)
|
||||
class TurnBearing
|
||||
{
|
||||
public:
|
||||
static constexpr double bearing_scale = 360.0 / 256.0;
|
||||
// discretizes a bearing into distinct units of 1.4 degrees
|
||||
TurnBearing(const double value = 0) : bearing(value / bearing_scale)
|
||||
{
|
||||
|
||||
@@ -52,15 +52,6 @@ typedef enum TurnLaneScenario
|
||||
NUM_SCENARIOS
|
||||
} TurnLaneScenario;
|
||||
|
||||
const constexpr char *scenario_names[] = {"Simple",
|
||||
"Partition Local",
|
||||
"Simple Previous",
|
||||
"Partition Previous",
|
||||
"Sliproad",
|
||||
"Merge",
|
||||
"None",
|
||||
"Invalid",
|
||||
"Unknown"};
|
||||
} // namespace
|
||||
|
||||
class TurnLaneHandler
|
||||
@@ -150,9 +141,6 @@ class TurnLaneHandler
|
||||
LaneDataVector &lane_data) const;
|
||||
};
|
||||
|
||||
static_assert(sizeof(scenario_names) / sizeof(*scenario_names) == TurnLaneScenario::NUM_SCENARIOS,
|
||||
"Number of scenarios needs to match the number of scenario names.");
|
||||
|
||||
} // namespace lanes
|
||||
} // namespace guidance
|
||||
} // namespace osrm
|
||||
|
||||
Reference in New Issue
Block a user