As per the attached document I'm trying to define a rail network by providing geocodes for each rail stop, how would I define a 'stop' as a junction for a branch in the network without having to define each branch option multiple times. For example, if I need to travel from Brisbane to Longreach in one trip and in the next trip Brisbane - Mackay, I don't want to have to define each stop from Brisbane - Rockhamptom for each of these branches. I want Google to pickup in the definition of my geocodes that Rockhampton is the stop which 'forks' into one or more branches, it will then continue to display the polylines of the branch which is closest to the destination.
In summary, in the example I've defined my destination station may be on one of two lines, I don't want to have to define the geocodes for those lines separately especially when they share more than half of the same geocodes up to a certain point, how is this best achieved?
Thanks in advance.

B --> x --> y --> R --> (L|M)by collapsing the intermediate nodes (i.e. branch) toB --> R --> (L|M)? – om_henners Aug 29 '12 at 1:03