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

Function CreateDirectionsEngine

libs/routing/index_router.cpp:127–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127unique_ptr<DirectionsEngine> CreateDirectionsEngine(VehicleType vehicleType, shared_ptr<NumMwmIds> numMwmIds,
128 MwmDataSource & dataSource)
129{
130 switch (vehicleType)
131 {
132 case VehicleType::Pedestrian:
133 case VehicleType::Transit: return make_unique<PedestrianDirectionsEngine>(dataSource, numMwmIds);
134 case VehicleType::Bicycle:
135 case VehicleType::Car: return make_unique<CarDirectionsEngine>(dataSource, numMwmIds);
136 case VehicleType::Count: CHECK(false, ("Can't create DirectionsEngine for", vehicleType)); return nullptr;
137 }
138 UNREACHABLE();
139}
140
141shared_ptr<TrafficStash> CreateTrafficStash(VehicleType, shared_ptr<NumMwmIds>, traffic::TrafficCache const &)
142{

Callers 1

IndexRouterMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected