Google Maps API to get bus route

I want to do.user put the source and destination address.showing the route name and bus number.

i want to do like this is Please click here. it possible to do?
please help me.anyone