The line from Madras actually runs to Mangalore(MAQ) ! See the km markings. But since Mangalore or the northern part of Kerala was not important to the idiots running the Southern Railway, they constructed a bypass line(bypassing Shoranur). I still consider MAS-MAQ line as the mainline. Most trains going towards ERS/TVC from MAS/PGT skip SRR by using that line.