Entur Developer
Open
GraphQL

PenaltyForStreetMode

input

A combination of street mode and penalty for time and cost.

Fields

streetMode·StreetMode!

List of modes with the given penalty is applied to. A street-mode should not be listed in more than one element. If empty or null the penalty is applied to all unlisted modes, it becomes the default penalty for this query.

timePenalty·DoubleFunction!

Penalty applied to the time for the given list of modes.

costFactor·Float= 1
Code
This is used to take the time-penalty and multiply by the `costFactor`. The result is added to the generalized-cost.

Schema Context

Did you find what you were looking for?