2018-01-05 08:33:53 -05:00
|
|
|
#ifndef OSRM_GUIDANCE_CONSTANTS_HPP_
|
|
|
|
#define OSRM_GUIDANCE_CONSTANTS_HPP_
|
|
|
|
|
|
|
|
#include "extractor/intersection/constants.hpp"
|
2016-03-23 08:04:23 -04:00
|
|
|
|
|
|
|
namespace osrm
|
|
|
|
{
|
|
|
|
namespace guidance
|
|
|
|
{
|
|
|
|
|
|
|
|
// what angle is interpreted as going straight
|
2018-01-05 08:33:53 -05:00
|
|
|
using extractor::intersection::STRAIGHT_ANGLE;
|
2016-03-23 08:04:23 -04:00
|
|
|
// if a turn deviates this much from going straight, it will be kept straight
|
2018-01-05 08:33:53 -05:00
|
|
|
using extractor::intersection::MAXIMAL_ALLOWED_NO_TURN_DEVIATION;
|
2016-03-23 08:04:23 -04:00
|
|
|
// angle that lies between two nearly indistinguishable roads
|
2018-01-05 08:33:53 -05:00
|
|
|
using extractor::intersection::GROUP_ANGLE;
|
2018-02-05 06:40:18 -05:00
|
|
|
using extractor::intersection::NARROW_TURN_ANGLE;
|
2016-03-23 08:04:23 -04:00
|
|
|
// angle difference that can be classified as straight, if its the only narrow turn
|
2018-01-05 08:33:53 -05:00
|
|
|
using extractor::intersection::FUZZY_ANGLE_DIFFERENCE;
|
|
|
|
|
2016-03-23 08:04:23 -04:00
|
|
|
const double constexpr DISTINCTION_RATIO = 2;
|
|
|
|
|
2016-07-29 15:35:01 -04:00
|
|
|
// Named roundabouts with radii larger then than this are seen as rotary
|
|
|
|
const double constexpr MAX_ROUNDABOUT_RADIUS = 15;
|
|
|
|
// Unnamed small roundabouts that look like intersections are announced as turns,
|
|
|
|
// guard against data issues or such roundabout intersections getting too large.
|
2017-11-03 16:29:25 -04:00
|
|
|
const double constexpr MAX_ROUNDABOUT_INTERSECTION_RADIUS = 15;
|
2016-07-29 15:35:01 -04:00
|
|
|
|
2016-03-23 08:04:23 -04:00
|
|
|
const double constexpr INCREASES_BY_FOURTY_PERCENT = 1.4;
|
|
|
|
|
2016-05-26 08:46:15 -04:00
|
|
|
const int constexpr MAX_SLIPROAD_THRESHOLD = 250;
|
2016-05-25 09:24:11 -04:00
|
|
|
|
2016-03-23 08:04:23 -04:00
|
|
|
} // namespace guidance
|
|
|
|
} // namespace osrm
|
|
|
|
|
2018-01-05 08:33:53 -05:00
|
|
|
#endif // OSRM_GUIDANCE_CONSTANTS_HPP_
|