Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/component/itinerary/queries/PlanConnection.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
$walkSpeed: Speed
$wheelchair: Boolean
$transferPenalty: Cost
$transitGroupRelaxFunction: LinearCostFunctionInput
$bikeSpeed: Speed
$allowedRentalNetworks: [String!]
$after: String
Expand Down Expand Up @@ -52,6 +53,7 @@
transit: {
transfer: { cost: $transferPenalty, slack: $minTransferTime }
filters: $filters
relaxTransitGroupPriority: $transitGroupRelaxFunction
}
}
) {
Expand Down Expand Up @@ -91,7 +93,7 @@
alertHeaderText
id
}
intermediatePlaces {

Check warning on line 96 in app/component/itinerary/queries/PlanConnection.js

View workflow job for this annotation

GitHub Actions / lint (24.14.1)

This field is marked as deprecated in your GraphQL schema (reason: Use `leg.stopCalls` instead)
arrival {
scheduledTime
estimated {
Expand Down
4 changes: 4 additions & 0 deletions app/configurations/config.default.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,10 @@ export default {
includeCarSuggestions: false,
showBikeAndParkItineraries: false,
includeTaxiSuggestions: false,
transitGroupRelaxFunction: {
constant: 300,
coefficient: 1.2,
},
},

/**
Expand Down
4 changes: 4 additions & 0 deletions app/util/planParamUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,9 @@ export function getPlanParams(
const transferPenalty = relaxSettings
? defaultSettings.transferPenalty
: settings.transferPenalty;

const { transitGroupRelaxFunction } = defaultSettings;

const timeStr = (time ? DateTime.fromSeconds(+time) : DateTime.now()).toISO({
suppressMilliseconds: true,
});
Expand All @@ -533,6 +536,7 @@ export function getPlanParams(
walkReluctance,
walkBoardCost,
transferPenalty,
transitGroupRelaxFunction,
modes,
planType,
noIterationsForShortTrips,
Expand Down
Loading