lib/pages.js
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;
}
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;
}
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 ; }
rates the fullness of a given address
rates the fullness of a given address