coding the transit of passengers between trains and stations