Matching alternatives count output. #3508

This commit is contained in:
Lev Dragunov
2017-01-06 15:52:02 +03:00
committed by Patrick Niklaus
parent 18a50d357f
commit f7b8e06c3a
4 changed files with 36 additions and 5 deletions
+3
View File
@@ -101,6 +101,9 @@ class MatchAPI final : public RouteAPI
auto waypoint = BaseAPI::MakeWaypoint(phantom);
waypoint.values["matchings_index"] = matching_index.sub_matching_index;
waypoint.values["waypoint_index"] = matching_index.point_index;
waypoint.values["alternatives_count"] =
sub_matchings[matching_index.sub_matching_index]
.alternatives_count[matching_index.point_index];
waypoints.values.push_back(std::move(waypoint));
}