Skip to content

Select representative Tuesday based on actual service supply rather than service_id count #408

Description

@MaxenceRichard

Problem

The current GTFS preparation selects a representative Tuesday based on the number of active service_id's.

However, I believe that service_id is a service calendar, not the actual amount of transport service operated on a given day. As a result, the Tuesday with the most service_ids can have fewer trips and served stops than other Tuesdays.

For example in an extract of 50km around Rennes:

Date        service_ids    trips    stop_visits    stops
08/09/2026      520        23,308      443,242     9,190
15/09/2026      540        23,454      443,046     8,993
22/09/2026      540        23,629      445,305     9,224
20/10/2026      600         3,844       38,274     3,363
27/10/2026      621         3,807       37,950     3,291

In this example, 27/10 would be selected by the current method because it has the highest number of service_ids, despite an other better choices

Proposed change

Instead of using the number of active service_ids, we could select the representative Tuesday using an other indicator that reflects the actual transport supply, such as:

  • the number of active trip_ids, or
  • preferably, the number of stop_times (stop visits).

The number of stop visits may be the most representative metric, taking, as it reflects both the number of trips and their number of stops.

Alternatively,

We can also merge every Tuesday listed into the GTFS to have the maximal coverage?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions