- waypoints.resize(router->get_n_waypoints());
- metrics.resize(waypoints.size()+1);
- metrics[0] = &router->get_metric(-1);
- for(unsigned i=0; i<waypoints.size(); ++i)
- {
- waypoints[i] = &router->get_waypoint(i);
- metrics[i+1] = &router->get_metric(i);
- }
- has_duration = router->get_trip_duration();