code: function rateAddress(addr){
      var rating = 0;
      if(addr != undefined){
          if (addr['extended-address']) rating++;          
          if (addr['street-address']) rating++;
          if (addr.locality) rating++;
          if (addr.region) rating++;
          if (addr['postal-code']) rating++;
          if (addr['country-name']) rating++;
      }
      return rating;
  }
docs: rates the fullness of a given address