| 145 | } |
| 146 | |
| 147 | void PushPassedSubroutes(Checkpoints const & checkpoints, vector<Route::SubrouteAttrs> & subroutes) |
| 148 | { |
| 149 | for (size_t i = 0; i < checkpoints.GetPassedIdx(); ++i) |
| 150 | { |
| 151 | subroutes.emplace_back(geometry::PointWithAltitude(checkpoints.GetPoint(i), geometry::kDefaultAltitudeMeters), |
| 152 | geometry::PointWithAltitude(checkpoints.GetPoint(i + 1), geometry::kDefaultAltitudeMeters), |
| 153 | 0 /* beginSegmentIdx */, 0 /* endSegmentIdx */); |
| 154 | } |
| 155 | } |
| 156 | |
| 157 | bool GetLastRealOrPart(IndexGraphStarter const & starter, vector<Segment> const & route, Segment & real) |
| 158 | { |
no test coverage detected