Revert "Removes summary from legs property"

This adds the summary back to the RouteLeg, it now depends on if
`steps=true`.
This reverts commit eaf9993dd9.
This commit is contained in:
Patrick Niklaus
2016-04-19 21:10:54 +02:00
parent b3957d87b4
commit da6dbd2159
5 changed files with 109 additions and 5 deletions
+2 -2
View File
@@ -93,8 +93,8 @@ class RouteAPI : public BaseAPI
auto leg_geometry = guidance::assembleGeometry(
BaseAPI::facade, path_data, phantoms.source_phantom, phantoms.target_phantom);
auto leg = guidance::assembleLeg(path_data, leg_geometry, phantoms.source_phantom,
phantoms.target_phantom, reversed_target);
auto leg = guidance::assembleLeg(facade, path_data, leg_geometry, phantoms.source_phantom,
phantoms.target_phantom, reversed_target, parameters.steps);
if (parameters.steps)
{