Skip to content

reluctanceForMode uses route mode, not Trip/pattern #5248

@t2gran

Description

@t2gran

Example router config:

"transitReluctanceForMode": {
   "RAIL": 0.85,
   "BUS": 1.0
}

When reducing the reluctance for RAIL I would expect it to be applied to all Trips with RAIL mode, and not rail replacement busses. It turns out that OTP uses the Route(Line) mode, not the trip(ServiceJourney) mode. This might be ok in some usecases, but it is not documented and I believe it is confusing.

When fixing issue #3665, we should take this into account and make a better/more flexible model addressing this. We should consider removing the "transitReluctanceForMode" config parameter and support grouping by both Route and Trip mode/submode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    StaleThis issue is stale, no activity for 90 days. Remove stale label or comment within 30 days.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions