Calculate servicepattern for the gtfs_obj

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

Arguments

gtfs_obj

gtfs feed

hash_algo

hashing algorithm used by digest

id_prefix

all ids start with this string

hash_length

length the hash should be cut to with substr(). Use -1 if the full hash should be used

Value

modified gtfs_obj with added servicepattern list and a table linking trips and pattern (trip_servicepatterns)