title: Alamofire 4 request to open weather
body: <p>Working on my first Alamofire request and a code that is updated to Alamofire 4 . Can't get this Alamofire.request .responseJSON properly updated. I am looking at the Migration <a href="https://github.com/Alamofire/Alamofire/blob/master/Documentation/Alamofire%204.0%20Migration%20Guide.md#breaking-api-changes" rel="nofollow noreferrer">documentation</a>:  but not clever enough. Any suggestions how it should look?</p>
  
  <pre><code>    let APIKey = "myAPIkey"
  
  func retrieveCurrentWeatherAtLat(lat: CLLocationDegrees, lon: CLLocationDegrees,
                                   block: (_ weatherCondition: WeatherCondition) -&gt; Void) {
      let url = "http://api.openweathermap.org/data/2.5/weather?APPID=\(APIKey)"
      let params = ["lat": lat, "lon": lon]
  
      //  Send the request
      Alamofire.request(url, method: .get, parameters: params)
          .responseJSON { request, response, result in
              switch result {
              case .Success(let json):
                  let json = JSON(json)
                  block(weatherCondition: self.createWeatherConditionFronJson(json))
              case .Failure(_, let error):
                  print("Error: \(error)")
              }
      }
  }
  </code></pre>