/
srv
/
osrm
/
osrm-backend
/
include
/
guidance
/
/srv/osrm/osrm-backend/include/guidance
mkdir
upload
Name
Size
Mode
Actions
constants.hpp
1265
0644
edit
dl
rm
driveway_handler.hpp
1540
0644
edit
dl
rm
files.hpp
1996
0644
edit
dl
rm
guidance_processing.hpp
2161
0644
edit
dl
rm
intersection.hpp
4933
0644
edit
dl
rm
intersection_handler.hpp
30075
0644
edit
dl
rm
is_through_street.hpp
2392
0644
edit
dl
rm
motorway_handler.hpp
2229
0644
edit
dl
rm
parsing_toolkit.hpp
3571
0644
edit
dl
rm
roundabout_handler.hpp
3374
0644
edit
dl
rm
roundabout_type.hpp
510
0644
edit
dl
rm
segregated_intersection_classification.hpp
677
0644
edit
dl
rm
serialization.hpp
1966
0644
edit
dl
rm
sliproad_handler.hpp
3683
0644
edit
dl
rm
statistics_handler.hpp
4235
0644
edit
dl
rm
suppress_mode_handler.hpp
1765
0644
edit
dl
rm
turn_analysis.hpp
2838
0644
edit
dl
rm
turn_bearing.hpp
777
0644
edit
dl
rm
turn_classification.hpp
535
0644
edit
dl
rm
turn_data_container.hpp
4326
0644
edit
dl
rm
turn_discovery.hpp
1509
0644
edit
dl
rm
turn_handler.hpp
4137
0644
edit
dl
rm
turn_instruction.hpp
16737
0644
edit
dl
rm
turn_lane_augmentation.hpp
507
0644
edit
dl
rm
turn_lane_data.hpp
1403
0644
edit
dl
rm
turn_lane_handler.hpp
6321
0644
edit
dl
rm
turn_lane_matcher.hpp
2047
0644
edit
dl
rm
Edit:
/srv/osrm/osrm-backend/include/guidance/roundabout_handler.hpp
(3374B)
#ifndef OSRM_GUIDANCE_ROUNDABOUT_HANDLER_HPP_ #define OSRM_GUIDANCE_ROUNDABOUT_HANDLER_HPP_ #include "extractor/compressed_edge_container.hpp" #include "extractor/intersection/coordinate_extractor.hpp" #include "extractor/name_table.hpp" #include "extractor/query_node.hpp" #include "guidance/intersection.hpp" #include "guidance/intersection_handler.hpp" #include "guidance/is_through_street.hpp" #include "guidance/roundabout_type.hpp" #include "util/node_based_graph.hpp" #include "util/typedefs.hpp" #include <unordered_set> #include <vector> namespace osrm::guidance { namespace detail { struct RoundaboutFlags { bool on_roundabout; bool can_enter; bool can_exit_separately; }; } // namespace detail // The roundabout handler processes all roundabout related instructions. // It performs both the distinction between rotaries and roundabouts and // assigns appropriate entry/exit instructions. class RoundaboutHandler final : public IntersectionHandler { public: RoundaboutHandler(const util::NodeBasedDynamicGraph &node_based_graph, const extractor::EdgeBasedNodeDataContainer &node_data_container, const std::vector<util::Coordinate> &coordinates, const extractor::CompressedEdgeContainer &compressed_geometries, const extractor::RestrictionMap &node_restriction_map, const std::unordered_set<NodeID> &barrier_nodes, const extractor::TurnLanesIndexedArray &turn_lanes_data, const extractor::NameTable &name_table, const extractor::SuffixTable &street_name_suffix_table); ~RoundaboutHandler() override final = default; // check whether the handler can actually handle the intersection bool canProcess(const NodeID from_nid, const EdgeID via_eid, const Intersection &intersection) const override final; // process the intersection Intersection operator()(const NodeID from_nid, const EdgeID via_eid, Intersection intersection) const override final; private: detail::RoundaboutFlags getRoundaboutFlags(const NodeID from_nid, const EdgeID via_eid, const Intersection &intersection) const; // decide whether we lookk at a roundabout or a rotary RoundaboutType getRoundaboutType(const NodeID nid) const; // TODO handle bike/walk cases that allow crossing a roundabout! // Processing of roundabouts // Produces instructions to enter/exit a roundabout or to stay on it. // Performs the distinction between roundabout and rotaries. Intersection handleRoundabouts(const RoundaboutType roundabout_type, const EdgeID via_edge, const bool on_roundabout, const bool can_exit_roundabout, Intersection intersection) const; bool qualifiesAsRoundaboutIntersection(const std::unordered_set<NodeID> &roundabout_nodes) const; const extractor::intersection::CoordinateExtractor coordinate_extractor; }; } // namespace osrm::guidance #endif /*OSRM_GUIDANCE_ROUNDABOUT_HANDLER_HPP_*/
Save
cmd:
run