title: Get directions between two points and to draw them on a map
body: <p>i'am using @agm/core in angular 4, and I want to get Directions between two points to draw them on the map, but i don´t know how to do it.
  There is little documentation on the official website, the version of the @agm/core i got is 1.0.0-beta.1</p>
  
  <p>HTML code:</p>
  
  <pre><code>&lt;agm-map&gt;
    &lt;agm-polyline&gt;
      &lt;agm-polyline-point *ngFor="let coordinate of coordinates" 
        [latitude]="coordinate.latitude"
        [longitude]="coordinate.longitude"&gt;
      &lt;/agm-polyline-point&gt;
    &lt;/agm-polyline&gt;
  &lt;/agm-map&gt;
  </code></pre>
  
  <p>Component code:</p>
  
  <pre><code>public coordinates: [
   {
    latitude: number,
    longitude: number,
   }
  ];
  </code></pre>