diff --git a/routing/index_router.cpp b/routing/index_router.cpp index 3de70fffa..d87ed514a 100644 --- a/routing/index_router.cpp +++ b/routing/index_router.cpp @@ -130,10 +130,13 @@ unique_ptr CreateDirectionsEngine(VehicleType vehicleType, UNREACHABLE(); } -shared_ptr CreateTrafficStash(VehicleType, shared_ptr, traffic::TrafficCache const &) +shared_ptr CreateTrafficStash(VehicleType vehicleType, shared_ptr numMwmIds, + traffic::TrafficCache const & trafficCache) { - return nullptr; - //return (vehicleType == VehicleType::Car ? make_shared(trafficCache, numMwmIds) : nullptr); + if (vehicleType != VehicleType::Car) + return nullptr; + + return make_shared(trafficCache, numMwmIds); } void PushPassedSubroutes(Checkpoints const & checkpoints, vector & subroutes)