2018-03-21 07:10:02 -04:00
|
|
|
#include "extractor/name_table.hpp"
|
|
|
|
|
2017-12-04 13:03:55 -05:00
|
|
|
#include "util/typedefs.hpp"
|
|
|
|
|
|
|
|
#include <unordered_set>
|
|
|
|
|
|
|
|
namespace osrm
|
|
|
|
{
|
|
|
|
namespace extractor
|
|
|
|
{
|
|
|
|
class NodeBasedGraphFactory;
|
2022-07-04 16:46:59 -04:00
|
|
|
} // namespace extractor
|
2017-12-04 13:03:55 -05:00
|
|
|
|
|
|
|
namespace guidance
|
|
|
|
{
|
|
|
|
// Find all "segregated" edges, e.g. edges that can be skipped in turn instructions.
|
|
|
|
// The main cases are:
|
|
|
|
// - middle edges between two osm ways in one logic road (U-turn)
|
|
|
|
// - staggered intersections (X-cross)
|
|
|
|
// - square/circle intersections
|
2018-01-08 13:12:06 -05:00
|
|
|
std::unordered_set<EdgeID> findSegregatedNodes(const extractor::NodeBasedGraphFactory &factory,
|
2018-03-21 07:10:02 -04:00
|
|
|
const extractor::NameTable &names);
|
2020-11-26 10:21:39 -05:00
|
|
|
} // namespace guidance
|
|
|
|
} // namespace osrm
|