'Station code is required.']); exit; } $api = new RailApi(); $response = $api->getLiveStation($stationCode, $hours); echo json_encode($response); ?>