Add impact and JSON results showing for ES.

This commit is contained in:
Patrick Fic
2025-08-26 14:21:56 -07:00
parent be12e94234
commit 58670d208b
21 changed files with 266 additions and 11 deletions

View File

@@ -255,7 +255,7 @@ async function DecodeAd2File(extensionlessFilePath) {
}
}
async function DecodeVehFile(extensionlessFilePath) {
async function DecodePfhFile(extensionlessFilePath) {
let dbf;
try {
dbf = await DBFFile.open(`${extensionlessFilePath}.PFH`);
@@ -270,7 +270,7 @@ async function DecodeVehFile(extensionlessFilePath) {
}
}
async function DecodePfhFile(extensionlessFilePath) {
async function DecodeVehFile(extensionlessFilePath) {
let dbf;
try {
dbf = await DBFFile.open(`${extensionlessFilePath}V.VEH`);
@@ -282,8 +282,8 @@ async function DecodePfhFile(extensionlessFilePath) {
if (!dbf) return {};
let records = await dbf.readRecords(1);
return _.pick(records[0], [
// "IMPACT_1",
// "IMPACT_2",
"IMPACT_1",
"IMPACT_2",
// "DB_V_CODE",
// "PLATE_NO",
// "PLATE_ST",