-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parses and attaches Priority Road flag to node based edges
- Loading branch information
1 parent
68eef09
commit 8efba17
Showing
12 changed files
with
300 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#ifndef OSRM_PRIORITY_ROADS_HPP | ||
#define OSRM_PRIORITY_ROADS_HPP | ||
|
||
#include <cstdint> | ||
|
||
namespace osrm | ||
{ | ||
namespace extractor | ||
{ | ||
// Impl. detail: namespace + enum instead of enum class to make Luabind happy | ||
// TODO: make type safe enum classes as soon as we can bind them to Lua. | ||
|
||
// Stop Signs tagged on nodes can be present or not. In addition Stop Signs have | ||
// an optional way direction they apply to. If the direction is unknown from the | ||
// data we have to compute by checking the distance to the next intersection. | ||
namespace StopSign | ||
{ | ||
enum State : std::uint8_t | ||
{ | ||
No = 1 << 0, | ||
YesUnknownDirection = 1 << 1, | ||
YesForward = 1 << 2, | ||
YesBackward = 1 << 3, | ||
}; | ||
} | ||
|
||
// Give Way is the complement to priority roads. Tagging is the same as Stop Signs. | ||
// See explanation above. | ||
namespace GiveWaySign | ||
{ | ||
enum State : std::uint8_t | ||
{ | ||
No = 1 << 0, | ||
YesUnknownDirection = 1 << 1, | ||
YesForward = 1 << 2, | ||
YesBackward = 1 << 3, | ||
}; | ||
} | ||
|
||
} | ||
} | ||
|
||
#endif // EXTRACTION_NODE_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.