2018-01-05 08:33:53 -05:00
|
|
|
#ifndef OSRM_GUIDANCE_DRIVEWAY_HANDLER_HPP
|
|
|
|
#define OSRM_GUIDANCE_DRIVEWAY_HANDLER_HPP
|
2017-06-13 09:17:13 -04:00
|
|
|
|
2018-01-05 07:05:53 -05:00
|
|
|
#include "guidance/intersection_handler.hpp"
|
2017-06-13 09:17:13 -04:00
|
|
|
|
|
|
|
namespace osrm
|
|
|
|
{
|
|
|
|
namespace guidance
|
|
|
|
{
|
|
|
|
|
|
|
|
// Intersection handlers deal with all issues related to intersections.
|
|
|
|
class DrivewayHandler final : public IntersectionHandler
|
|
|
|
{
|
|
|
|
public:
|
2017-12-04 07:11:45 -05:00
|
|
|
DrivewayHandler(const util::NodeBasedDynamicGraph &node_based_graph,
|
2018-01-05 08:33:53 -05:00
|
|
|
const extractor::EdgeBasedNodeDataContainer &node_data_container,
|
2017-06-13 09:17:13 -04:00
|
|
|
const std::vector<util::Coordinate> &coordinates,
|
2017-12-03 15:32:17 -05:00
|
|
|
const extractor::CompressedEdgeContainer &compressed_geometries,
|
2018-01-05 08:33:53 -05:00
|
|
|
const extractor::RestrictionMap &node_restriction_map,
|
2017-12-03 15:32:17 -05:00
|
|
|
const std::unordered_set<NodeID> &barrier_nodes,
|
2018-01-05 08:33:53 -05:00
|
|
|
const extractor::TurnLanesIndexedArray &turn_lanes_data,
|
2018-03-21 07:10:02 -04:00
|
|
|
const extractor::NameTable &name_table,
|
2018-01-05 08:33:53 -05:00
|
|
|
const extractor::SuffixTable &street_name_suffix_table);
|
2017-06-13 09:17:13 -04:00
|
|
|
|
|
|
|
~DrivewayHandler() override final = default;
|
|
|
|
|
|
|
|
// check whether the handler can actually handle the intersection
|
|
|
|
bool canProcess(const NodeID nid,
|
|
|
|
const EdgeID via_eid,
|
|
|
|
const Intersection &intersection) const override final;
|
|
|
|
|
|
|
|
// process the intersection
|
|
|
|
Intersection operator()(const NodeID nid,
|
|
|
|
const EdgeID via_eid,
|
|
|
|
Intersection intersection) const override final;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace guidance
|
|
|
|
} // namespace osrm
|
|
|
|
|
2018-01-05 08:33:53 -05:00
|
|
|
#endif /* OSRM_GUIDANCE_DRIVEWAY_HANDLER_HPP */
|