title: Angular 6 How to Get Distance between two location AGM
body: <p>I get <strong>Direction</strong> between two points using this reference <a href="https://www.npmjs.com/package/agm-direction" rel="nofollow noreferrer">https://www.npmjs.com/package/agm-direction</a>
  Now I want to get/calculate <strong>distance</strong> between two location and I'm Confusing how's do it. </p>
  
  <p>In <strong>my Module</strong></p>
  
  <pre><code>AgmCoreModule.forRoot({
    apiKey: 'My API Key....',
    libraries: ['geometry']
  })
  </code></pre>
  
  <p>In <strong>my Component</strong></p>
  
  <pre><code>getDirection() {
     this.origin = { lat: this.pick_latitude, lng: this.pick_longitude }
     this.destination = { lat: this.drop_latitude, lng: this.drop_longitude }
  }
  </code></pre>
  
  <p><strong>My Question</strong> : How I get distance between two point when I use above reference to get direction path ? Please give me suggestion ( Google map API etc). I'm using Angular 6</p>