Depends how accurate you want to be, I suppose. I do it the old fashioned way, I look at the mileages between stations at the beginning of each table in the Network Rail passenger timetable and if there are any sections that aren't in the timetable, I measure it out using the path ruler in Google Earth.