Tweak name matching algo to put Vaughan Williams in the correct LGA.
This commit is contained in:
@@ -63,7 +63,7 @@ function match_lga(&$candidate_data, $lga_list) {
|
|||||||
foreach ($bb as $b) {
|
foreach ($bb as $b) {
|
||||||
similar_text($a, $b, $score);
|
similar_text($a, $b, $score);
|
||||||
if ($score > 70) $score_sum += $score;
|
if ($score > 70) $score_sum += $score;
|
||||||
else $score_sum -= 10;
|
else $score_sum -= 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user