MCPcopy Create free account
hub / github.com/comaps/comaps / IndexGraph

Method IndexGraph

libs/routing/index_graph.cpp:40–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40IndexGraph::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
59bool IndexGraph::IsJoint(RoadPoint const & roadPoint) const
60{

Callers

nothing calls this directly

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected