Entur Developer
Open
GraphQL

RelaxCostInput

input

A relax-cost is used to increase the limit when comparing one cost to another cost. This is used to include more results into the result. A ratio=2.0 means a path (itinerary) with twice as high cost as another one, is accepted. A constant=$300 means a "fixed" constant is added to the limit. A {ratio=1.0, constant=0} is said to be the NORMAL relaxed cost - the limit is the same as the cost used to calculate the limit. The NORMAL is usually the default. We can express the RelaxCost as a function f(t) = constant + ratio * t. f(t)=t is the NORMAL function.

Fields

ratio·Float= 1

The factor to multiply with the 'other cost'. Minimum value is 1.0.

constant·Cost= "0s"

The constant value to add to the limit. Must be a positive number. The value is equivalent to transit-cost-seconds. Integers are treated as seconds, but you may use the duration format. Example: '3665 = 'DT1h1m5s' = '1h1m5s'.

Schema Context

Did you find what you were looking for?