   processData: -> return
 
   updateTemperatureUnits: ->
-    @getUrl()
+    @getLocation()
+      .then @cacheLocation
+      .then @createUrlFromLocation
       .then @getWeather
       .then JSON.parse
       .then (data) =>


  loadData: ->
    @getLocation()
      .then @createUrlFromLocation
      .then @getWeather
      .then JSON.parse
      .then @cacheWeather
      .then @displayWeather.bind this
      .then => @initialized = true
      .then => @update @data
      .catch (err) =>
        log err
        @showError err

    @$el = $ '.weather'
    @apikey = 'e35c4324fb7999ba5788fbba8c901d11'

  update: (data) =>
    @data = data
    @processData()
    if not @initialized and data.displayWeather isnt off
