2016-03-23 08:04:23 -04:00
|
|
|
#ifndef OSRM_EXTRACTOR_GUIDANCE_CONSTANTS_HPP_
|
|
|
|
#define OSRM_EXTRACTOR_GUIDANCE_CONSTANTS_HPP_
|
|
|
|
|
|
|
|
namespace osrm
|
|
|
|
{
|
|
|
|
namespace extractor
|
|
|
|
{
|
|
|
|
namespace guidance
|
|
|
|
{
|
|
|
|
|
|
|
|
const bool constexpr INVERT = true;
|
|
|
|
|
|
|
|
// what angle is interpreted as going straight
|
|
|
|
const double constexpr STRAIGHT_ANGLE = 180.;
|
|
|
|
// if a turn deviates this much from going straight, it will be kept straight
|
|
|
|
const double constexpr MAXIMAL_ALLOWED_NO_TURN_DEVIATION = 3.;
|
|
|
|
// angle that lies between two nearly indistinguishable roads
|
|
|
|
const double constexpr NARROW_TURN_ANGLE = 40.;
|
2016-04-21 16:51:38 -04:00
|
|
|
const double constexpr GROUP_ANGLE = 60;
|
2016-03-23 08:04:23 -04:00
|
|
|
// angle difference that can be classified as straight, if its the only narrow turn
|
2016-04-21 16:51:38 -04:00
|
|
|
const double constexpr FUZZY_ANGLE_DIFFERENCE = 20.;
|
2016-03-23 08:04:23 -04:00
|
|
|
const double constexpr DISTINCTION_RATIO = 2;
|
|
|
|
const unsigned constexpr INVALID_NAME_ID = 0;
|
|
|
|
|
2016-05-25 09:24:11 -04:00
|
|
|
const double constexpr MAX_ROUNDABOUT_INTERSECTION_RADIUS = 5;
|
2016-03-23 08:04:23 -04:00
|
|
|
const double constexpr MAX_ROUNDABOUT_RADIUS = 15; // 30 m diameter as final distinction
|
|
|
|
const double constexpr INCREASES_BY_FOURTY_PERCENT = 1.4;
|
|
|
|
|
2016-05-25 09:24:11 -04:00
|
|
|
const unsigned constexpr MAX_SLIPROAD_THRESHOLD = 250;
|
|
|
|
|
2016-03-23 08:04:23 -04:00
|
|
|
} // namespace guidance
|
|
|
|
} // namespace extractor
|
|
|
|
} // namespace osrm
|
|
|
|
|
|
|
|
#endif // OSRM_EXTRACTOR_GUIDANCE_CONSTANTS_HPP_
|