How to add route on google map?

I created a Snazzy Maps is a Google map and embedded on the website. The customer requires to show the route obligasi metro station to the office. There is already a marker, the code looks like this:

var marker = new google.maps.Marker({
 position: new google.maps.LatLng(55.7430016, 37.6604295),
 map: map,
 title: 'Object!'

The idea is that something similar should be for a route. Has anyone solved similar problems?
June 10th 19 at 15:07
1 answer
June 10th 19 at 15:09
Google new google.maps.DirectionsService(),
there are two points specify later.

Find more questions by tags Google MapsJavaScript