checked').val();
      if (latlngInput.val()) {
        url += '&ll=' + latlngInput.val();
      }
      if (woeRestrictInput.val()) {
        url += '&woeRestrict=' + woeRestrictInput.val();
      }

      if ($('#debugButton').attr('checked')) {
        url += '&debug=1';
      }
      return url;
    }

    function geocode() {
      if (!!request) {
        request.abort()
      }
      var url = 'http://' + window.location.host + '/?autocomplete=true&' + buildQueryParams();
      request = $.getJSON(ur