title: Generate a google map link with directions using latitude and longitude
body: <p>Good day, </p>
  
  <p>I'm trying to create a google map link that will redirect to a map with directions. I will pass the coordinates in the link. Here is my code:</p>
  
  <pre><code>var latDes = this.items[id].LongitudeWD;
  var longDes = this.items[id].LatitudeWD;
  var url = "https://www.google.com/maps/dir/?api=1";
  var origin = "origin=" + tempLatitude + "," + tempLongitude;
  var destination = "&amp;destination=" + latDes + "," + longDes;
  var newUrl = new URL(url + origin + destination);
  
  var win = window.open(newUrl, '_blank');
   win.focus();
  </code></pre>
  
  <p>Here is the sample link that it is currently producing <a href="https://www.google.com/maps/dir/?api=1origin=34.1030032,-118.41046840000001&amp;destination=-118.368152,34.059808" rel="noreferrer">https://www.google.com/maps/dir/?api=1origin=34.1030032,-118.41046840000001&amp;destination=-118.368152,34.059808</a></p>
  
  <p>As you can see it does not have read the coordinates that I'm passing I want something like this</p>
  
  <p><a href="https://www.google.com/maps/dir/?api=1&amp;origin=760+West+Genesee+Street+Syracuse+NY+13204&amp;destination=314+Avery+Avenue+Syracuse+NY+13204" rel="noreferrer">https://www.google.com/maps/dir/?api=1&amp;origin=760+West+Genesee+Street+Syracuse+NY+13204&amp;destination=314+Avery+Avenue+Syracuse+NY+13204</a></p>
  
  <p>but if possible instead of using the full address can it be with latitude longitude?</p>