set_servicepattern | R Documentation |
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
)
gtfs_obj |
gtfs feed (tidygtfs object) |
id_prefix |
all servicepattern ids will start with this string |
hash_algo |
hashing algorithm used by digest |
hash_length |
length the hash should be cut to with |
modified gtfs_obj with added servicepattern list and a table linking
trips and pattern (trip_servicepatterns), added to gtfs_obj$.
sublist.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.