Several components for this problem:
(1) What should the interface look like? A separate button in the station popup?
(2) How will automatic line drawing work for a looped track?
(3) Right now the list of stations in a line is an array of station IDs. This will need to be changed to a linked list.