This tutorial might do what you would like to do Lofoli "I want to do real-time bus tracking and calculate the route with my position"
or possibly this one
or possibly this one that plots a route or track from one location to another
Do these examples help you do what you want to do?