Google Map (Javascript) : Plot the user's trip on map

In my app i’m using google javascript map. Every 2 minutes i save the user’s position in a database. What i want after is to draw the road the user have taken ( the road that passes through all the registered coordinates) on the map. I have not found any tutorial that can help me.
Help !!! :sweat: