Complex sentence: It is served by Kirkby Stephen railway station, on the Settle-Carlisle mainline which is located over a mile from the town, as the rail-line avoided dropping down into the Eden Valley.
Split into simpler sentences: It is served by Kirkby Stephen railway station, on the Settle-Carlisle mainline. This is actually located over a mile from the town itself, as the rail-line avoided dropping right down into the Eden Valley.