How to track current location in real time to origin using google maps in ionic and angular

Hi all,

I am trying to make a school transport app for dropping kids at home from school. Using angular google maps, I am so far able to display current location and display a route between the origin and destination but I am currently unable to track in real time from origin (current location) to destination.

Is there a tutorial or sample code that can help me accomplish this?

Thanks