title: How to pass address from app to google maps not just latitude and longitude in swift
body: <p>I am new in swift and I am facing problem to show address in google maps. I am only able to show latitude and longitude. </p>
  
  <pre class="lang-swift prettyprint-override"><code>if (UIApplication.shared.canOpenURL(URL(string:"comgooglemaps://")!)) {
      UIApplication.shared.openURL(NSURL(string: "comgooglemaps://?saddr=&amp;daddr=\(Float(self.lat)!),\(Float(self.lon)!)&amp;directionsmode=driving")! as URL)
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/R1E04.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/R1E04.png" alt="enter image description here"></a></p>
  
  <p>This code showing address as shown in the picture. </p>