Trains from Dundee to St. Andrews cover the 11 miles long journey. There are direct train services available. Travellers depart most frequently from Dundee and arrive in St Andrews.
Passengers board the train most frequently from Dundee, which is located around 0.7 miles (1.1 km) away from the city centre, and they get off the train at St Andrews, located 0.1 miles (196 m) away from the city centre.
Here are some other resources that might have the information you need