You can use Directly Google map to get the direction from your current location to desire location by using following lines of code
(If you have "Google Map" App in your phone if loop will execute otherwise else loop will execute and open google map on your web browser)
if (UIApplication.shared.canOpenURL(URL(string:"comgooglemaps://")!)) {
UIApplication.shared.openURL(NSURL(string:
"comgooglemaps://?saddr=&daddr=\(Float((Yourcoordinate.latitude)!)),\(Float((Yourcoordinate.longitude)!))&directionsmode=driving")! as URL)
} else {
let url = "https://www.google.co.in/maps/dir/?saddr=&daddr=\(Float((Yourcoordinate.latitude)!)),\(Float((Yourcoordinate.longitude)!))"
UIApplication.shared.openURL(NSURL(string:url)! as URL)
}
Hope this will help...