TimePenaltyWithCost
objectThe time-penalty is applied to either the access-legs and/or egress-legs. Both access and egress may contain more than one leg; Hence, the penalty is not a field on leg.
Note! This is for debugging only. This type can change without notice.
Fields
The time-penalty is applied to either the access-legs and/or egress-legs. Both access
and egress may contain more than one leg; Hence, the penalty is not a field on leg. The
appliedTo describe which part of the itinerary that this instance applies to.
The time-penalty added to the actual time/duration when comparing the itinerary with other itineraries. This is used to decide which is the best option, but is not visible
- the actual departure and arrival-times are not modified.
The time-penalty does also propagate to the generalizedCost. As a result of the given
time-penalty, the generalized-cost also increased by the given amount. This delta is
included in the itinerary generalized-cost. In some cases the generalized-cost-delta is
excluded when comparing itineraries - that happens if one of the itineraries is a
"direct/street-only" itinerary. Time-penalty can not be set for direct searches, so it
needs to be excluded from such comparison to be fair. The unit is transit-seconds.