Skip to content

Commit

Permalink
always do direct routing (if directModes are set + no paging)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixguendling committed Nov 5, 2024
1 parent fe640bb commit 5a61423
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/endpoints/routing.cc
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,7 @@ api::plan_response routing::operator()(boost::urls::url_view const& url) const {

UTL_START_TIMING(direct);
auto const [direct, fastest_direct] =
(holds_alternative<osr::location>(from) &&
holds_alternative<osr::location>(to) && t.has_value())
t.has_value() && !direct_modes.empty()
? route_direct(e, gbfs.get(), from_p, to_p, direct_modes, *t,
query.wheelchair_,
std::chrono::seconds{query.maxDirectTime_})
Expand Down

0 comments on commit 5a61423

Please sign in to comment.