Public/Get-AllegisLocationScore.ps1

function get-AllegisLocationScore ($officeid1, $officeid2, $officehash){
    $km=Measure-AllegisdistanceInKmBetweenEarthCoordinates -lat1 $officehash[$officeid1].latitude -lon1 $officehash[$officeid1].longitude -lat2 $officehash[$officeid2].latitude -lon2 $officehash[$officeid2].longitude
    $score=[math]::Round([math]::pow(1.006,(-[math]::abs(($km)))),2)
    return $score, $km
}