Generate candidates-generic.csv files based on fuzzy match with LGA/Ward.

This commit is contained in:
Kim Taylor
2024-09-22 19:46:39 +10:00
parent 2f5806a227
commit 219b242503
3 changed files with 131 additions and 6 deletions

View File

@@ -0,0 +1,20 @@
<?php
require_once("parse_generic_csv.php");
$options = getopt("", ["generic-csv:"]);
if (isset($options['generic-csv'])) {
$generic_csv = $options['generic-csv'];
} else {
error_log("Error: Missing required option '--generic-csv'.");
exit(1);
}
$candidate_data = parse_generic_csv($generic_csv);
$json_data = json_encode($candidate_data);
print_r($json_data);
exit(0);