| 38 | } |
| 39 | |
| 40 | IndexGraph::IndexGraph(shared_ptr<Geometry> geometry, shared_ptr<EdgeEstimator> estimator, |
| 41 | RoutingOptions routingOptions, feature::RegionData const * regionData) |
| 42 | : m_geometry(std::move(geometry)) |
| 43 | , m_estimator(std::move(estimator)) |
| 44 | , m_avoidRoutingOptions(routingOptions) |
| 45 | { |
| 46 | CHECK(m_geometry, ()); |
| 47 | CHECK(m_estimator, ()); |
| 48 | if (regionData) |
| 49 | { |
| 50 | auto const driving_side = regionData->Get(feature::RegionData::RD_DRIVING); |
| 51 | m_isLeftHandTraffic = (driving_side == "l"); |
| 52 | } |
| 53 | else |
| 54 | { |
| 55 | m_isLeftHandTraffic = false; |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | bool IndexGraph::IsJoint(RoadPoint const & roadPoint) const |
| 60 | { |