| 125 | } |
| 126 | |
| 127 | unique_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 | |
| 141 | shared_ptr<TrafficStash> CreateTrafficStash(VehicleType, shared_ptr<NumMwmIds>, traffic::TrafficCache const &) |
| 142 | { |