Each trip has a defined number of dates it runs on. This set of dates is called a service pattern in tidytransit. Trips with the same servicepattern id run on the same dates. In general, service_id can work this way but it is not enforced by the GTFS standard.

set_servicepattern(
gtfs_obj,
id_prefix = "s_",
hash_algo = "md5",
hash_length = 7
)

Arguments

gtfs_obj

tidytransit gtfs feed

id_prefix