                                toDirection.name) as String
             }
         case .google:
-            url = NSString(format: "comgooglemaps://?saddr=%@&daddr=%@",
+            urlString = NSString(format: "comgooglemaps://?saddr=%@&daddr=%@",
                            googleMapsString(fromDirections),
                            googleMapsString(toDirection)) as String
         case .yandex:
-            url = NSString(format: "yandexnavi://build_route_on_map?lat_to=%f&lon_to=%f&lat_from=%f&lon_from=%f",
+            urlString = NSString(format: "yandexnavi://build_route_on_map?lat_to=%f&lon_to=%f&lat_from=%f&lon_from=%f",
                            toDirection.location.coordinate.latitude,
                            toDirection.location.coordinate.longitude,
                            fromDirections.location.coordinate.latitude,

    /**
      Holds available map applications
     */
    private var availableMapApps: NSMutableArray! = NSMutableArray()
    
    /**
      Initiliaze Map Launcher

        if !isMapAppInstalled(mapApp) {
            return false
        }
        var urlString = ""
        switch(mapApp) {
        case .apple:
            urlString = NSString(format: "http://maps.apple.com/?saddr=%@&daddr=%@&z=14",
                           googleMapsString(fromDirections),
                           googleMapsString(toDirection)) as String
        case .here:
            if #available(iOS 9.0, *) {
                urlString = NSString(format: "https://share.here.com/r/%f,%f,%@/%f,%f,%@",
                               fromDirections.location.coordinate.latitude,
                               fromDirections.location.coordinate.longitude,
                               fromDirections.name,
