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

Function FillRoadAccessBySample_2

libs/routing/routing_tests/road_access_test.cpp:40–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40void FillRoadAccessBySample_2(RoadAccess & roadAccess)
41{
42 RoadAccess::WayToAccess wayToAccess = {
43 {1 /* featureId */, RoadAccess::Type::Private},
44 {2 /* featureId */, RoadAccess::Type::Destination},
45 };
46
47 RoadAccess::PointToAccess pointToAccess = {
48 {RoadPoint(3 /* featureId */, 10 /* pointId */), RoadAccess::Type::Destination},
49 {RoadPoint(4 /* featureId */, 0 /* pointId */), RoadAccess::Type::No},
50 };
51
52 roadAccess.SetAccess(std::move(wayToAccess), std::move(pointToAccess));
53}
54
55osmoh::OpeningHours ToOH(std::string const & s)
56{

Callers 1

UNIT_CLASS_TESTFunction · 0.85

Calls 2

RoadPointClass · 0.85
SetAccessMethod · 0.80

Tested by

no test coverage detected