Trip plugin does not have a continue_straight parameter, use false
This commit is contained in:
parent
57a30dd375
commit
a4f1dc536d
@ -35,7 +35,6 @@ class TripPlugin final : public BasePlugin
|
||||
int max_locations_trip;
|
||||
|
||||
InternalRouteResult ComputeRoute(const std::vector<PhantomNode> &phantom_node_list,
|
||||
const api::TripParameters ¶meters,
|
||||
const std::vector<NodeID> &trip);
|
||||
|
||||
public:
|
||||
|
@ -115,7 +115,6 @@ SCC_Component SplitUnaccessibleLocations(const std::size_t number_of_locations,
|
||||
}
|
||||
|
||||
InternalRouteResult TripPlugin::ComputeRoute(const std::vector<PhantomNode> &snapped_phantoms,
|
||||
const api::TripParameters ¶meters,
|
||||
const std::vector<NodeID> &trip)
|
||||
{
|
||||
InternalRouteResult min_route;
|
||||
@ -135,7 +134,7 @@ InternalRouteResult TripPlugin::ComputeRoute(const std::vector<PhantomNode> &sna
|
||||
}
|
||||
BOOST_ASSERT(min_route.segment_end_coordinates.size() == trip.size());
|
||||
|
||||
shortest_path(min_route.segment_end_coordinates, parameters.continue_straight, min_route);
|
||||
shortest_path(min_route.segment_end_coordinates, {false}, min_route);
|
||||
|
||||
BOOST_ASSERT_MSG(min_route.shortest_path_length < INVALID_EDGE_WEIGHT, "unroutable route");
|
||||
return min_route;
|
||||
@ -232,7 +231,7 @@ Status TripPlugin::HandleRequest(const api::TripParameters ¶meters,
|
||||
routes.reserve(trips.size());
|
||||
for (const auto &trip : trips)
|
||||
{
|
||||
routes.push_back(ComputeRoute(snapped_phantoms, parameters, trip));
|
||||
routes.push_back(ComputeRoute(snapped_phantoms, trip));
|
||||
}
|
||||
|
||||
api::TripAPI trip_api{BasePlugin::facade, parameters};
|
||||
|
Loading…
Reference in New Issue
Block a user