title: Set Custom Coordinates to a function, Waze Integration
body: <p>I'm trying to implement navigation using <code>Waze</code> in my App, using their own API: <a href="https://www.waze.com/about/dev" rel="nofollow noreferrer">here</a>.</p>
  
  <p>I want to set in <code>custom coordinates</code> that are set in an <code>array</code>
  and then fit them in this <strong>code:</strong></p>
  
  <pre><code>func navigate(toLatitude latitude: Double , longitude: Double) {
                  if UIApplication.shared.canOpenURL(URL(string: "waze://")!) {
                      // Waze is installed. Launch Waze and start navigation
                      let urlStr: String = "waze://?ll=\(latitude),\(longitude)&amp;navigate=yes"
                      UIApplication.shared.openURL(URL(string: urlStr)!)
                  }
                  else {
                      // Waze is not installed. Launch AppStore to install Waze app
                      UIApplication.shared.openURL(URL(string: "http://itunes.apple.com/us/app/id323229106")!)
                  }
              }
  </code></pre>
  
  <p>i have tried settings up different type of arrays but didn't succeed to make it work . So if you could help me out set custom array holding latitude and longitude that would work properly with the code, that would be awesome </p>
  
  <p>your help will be very much helpful, </p>
  
  <p>Thank you in advance.</p>