new funcs in navigation to export instructions

This commit is contained in:
2022-02-03 10:44:58 +01:00
parent 23aaa890d5
commit 5ca21b09b2
6 changed files with 135 additions and 18 deletions
+5 -1
View File
@@ -20,13 +20,17 @@ void Route::addPointToRoute(Point point) {
}
Point Route::startRoute() {
if (this->points.size() < 1)
return Point(0, 0);
*this->it = this->points.begin();
return **this->it;
}
Point Route::getNextPoint() {
if (*this->it != this->points.end())
if (*this->it != this->points.end()) {
this->it++;
return **this->it;
}
else
return Point(0, 0);
}