Hi, you must get directions from google maps api... then read those directions and finally draw polylines.. There are a few examples in the forum about drawing polylines. Also you'll have to decode those polylines. I think you must read this -> https://developers.google.com/maps/documentation/directions/?hl=en
And then please use the search box.. it may help you a lot!