remove redundant code and streamline coordinate interface

This commit is contained in:
Dennis Luxen
2015-01-22 16:48:53 +01:00
parent 0ea7fd9c3d
commit 2e5cc1e6ae
5 changed files with 44 additions and 33 deletions
+1 -1
View File
@@ -237,7 +237,7 @@ void DescriptionFactory::Run(const unsigned zoom_level)
via_indices.push_back(necessary_pieces);
}
const double angle =
path_description[i + 1].location.GetBearing(path_description[i].location);
path_description[i + 1].location.bearing(path_description[i].location);
path_description[i].bearing = static_cast<unsigned>(angle * 10);
}
}