title: Can't show the directions in iPhone's inbuilt Map application
body: <p>This is my custom location set inside the iOS 10.0 iPhone 6 and iOS 11.2 iPhone 6 simulators.</p>
  
  <p><a href="https://i.stack.imgur.com/lnDPQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lnDPQ.png" alt="enter image description here"></a></p>
  
  <p>And this is the code by which I am trying to open the iPhone's inbuilt Apple Map and show the directions from user's (above set) current location to the provided destination locations.</p>
  
  <pre><code>    let regionDistance: CLLocationDistance = 1000
      let coordinates = CLLocationCoordinate2D(latitude: 26.025860999999999, longitude: 56.089238999999999)
      let regionSpan = MKCoordinateRegionMakeWithDistance(coordinates, regionDistance, regionDistance)
      let options = [MKLaunchOptionsMapCenterKey: NSValue(mkCoordinate: regionSpan.center),
              MKLaunchOptionsMapSpanKey: NSValue(mkCoordinateSpan: regionSpan.span),
              MKLaunchOptionsDirectionsModeKey: MKLaunchOptionsDirectionsModeDriving] as [String : Any]
      let placemark = MKPlacemark(coordinate: coordinates, addressDictionary: nil)
      let mapItem = MKMapItem(placemark: placemark)
      mapItem.name = "Federal Electricity &amp; Water Authority"
      mapItem.openInMaps(launchOptions: options)
  </code></pre>
  
  <p>but this is not working for at all. It's showing me the error like below,</p>
  
  <p><a href="https://i.stack.imgur.com/wbx6w.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wbx6w.png" alt="enter image description here"></a></p>
  
  <p>Note: </p>
  
  <ol>
  <li>I have given the location access permission to the default Map
  application.</li>
  <li>All 4 <code>MKLaunchOptionsDirectionsModeKey</code> is not showing
  the direction.</li>
  <li>Tested it on the Simulator and a real device and it is not working in either place.</li>
  <li>Setting destination coordinates like this doesn't help. <code>let coordinates = CLLocationCoordinate2D(latitude: 26.025861, longitude: 56.089239)</code></li>
  </ol>
  
  <p>Please help!</p>