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

Function IsRestrictionFromRoads

libs/routing/restriction_loader.cpp:97–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97bool IsRestrictionFromRoads(IndexGraph const & graph, std::vector<uint32_t> const & restriction)
98{
99 for (auto const & featureId : restriction)
100 if (!graph.IsRoad(featureId))
101 return false;
102
103 return true;
104}
105
106/// \brief We store |Only| restriction in mwm, like
107/// Only, featureId_1, ... , featureId_N

Callers 1

Calls 1

IsRoadMethod · 0.45

Tested by

no test coverage detected