Handling Results and Displaying Output
Each decoded PlanResult frame can be displayed directly:
Example handler:
function handleResult(result) { console.log(`Timestamp: ${result.timestamp}`); if (result.errors?.length) console.log('Errors:', result.errors); if (!result.trips?.length) { console.log('No trips found'); return; } result.trips.forEach((t, i) => { console.log(`Trip ${i + 1}`); console.log(summarizeTrip(t)); });}This output can be styled in a CLI or fed into a UI component that lists trip options.