How to record an automated route along a road?

How to record an automated route along a road?