<?php
require_once dirname(__DIR__).'/integration/AnalysisIntegration.php';
$i=new AnalysisIntegration();
$d=$_GET['race_date']??date('Y-m-d');
$v=$_GET['venue']??'';
$r=isset($_GET['race_num'])?(int)$_GET['race_num']:0;
header('Content-Type: application/json; charset=utf-8');
echo json_encode($i->payload($d,$v,$r),JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE);
