Skip to content

Commit

Permalink
don't overdo with alternatives, even for car
Browse files Browse the repository at this point in the history
  • Loading branch information
karussell committed May 13, 2024
1 parent 65a7497 commit 9f60c97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stores/QueryStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ export default class QueryStore extends Store<QueryStoreState> {
if (
state.queryPoints.length === 2 &&
state.maxAlternativeRoutes > 1 &&
(ApiImpl.isMotorVehicle(state.routingProfile.name) || maxDistance < 500_000)
(ApiImpl.isMotorVehicle(state.routingProfile.name) && maxDistance < 8_000_000 || maxDistance < 500_000)
)
requests.push(QueryStore.buildRouteRequest(state))
}
Expand Down

0 comments on commit 9f60c97

Please sign in to comment.