Entur Developer
Open
GraphQL

ItineraryFilters

input

Parameters for the OTP Itinerary Filter Chain. These parameters SHOULD be configured on the server side and should not be used by the client. They are made available here to be able to experiment and tune the server.

Fields

transitGeneralizedCostLimit·TransitGeneralizedCostFilterParams

Set a relative limit for all transit itineraries. The limit is calculated based on the transit itinerary generalized-cost and the time between itineraries Itineraries without transit legs are excluded from this filter. Example: costLimitFunction(x) = 3600 + 2.0 x and intervalRelaxFactor = 0.5. If the lowest cost returned is 10 000, then the limit is set to: 3 600 + 2 * 10 000 = 26 600 plus half of the time between either departure or arrival times of the itinerary. Default: {"costLimitFunction": 15m + 1.5 t, "intervalRelaxFactor": 0.75}

groupSimilarityKeepOne·Float= 0.85

Pick ONE itinerary from each group after putting itineraries that is 85% similar together.

groupSimilarityKeepThree·Float= 0.68

Reduce the number of itineraries in each group to to maximum 3 itineraries. The itineraries are grouped by similar legs (on board same journey). So, if 68% of the distance is traveled by similar legs, then two itineraries are in the same group. Default value is 68%, must be at least 50%.

groupedOtherThanSameLegsMaxCostMultiplier·Float= 2

Of the itineraries grouped to maximum of three itineraries, how much worse can the non-grouped legs be compared to the lowest cost. 2.0 means that they can be double the cost, and any itineraries having a higher cost will be filtered. Default value is 2.0, use a value lower than 1.0 to turn off

Use this parameter to debug the itinerary-filter-chain. The default is off (itineraries are filtered and not returned). For all other values the unwanted itineraries are returned with a system notice, and not deleted.

Schema Context

Did you find what you were looking for?