Aero GPS Recorder APP
Sistema di emergenza per la registrazione di tracce di competizioni ULM.
I file generati sono in formato CSV. Possono essere trasmessi a un server tramite un servizio web molto facile da implementare.
L'URL del webservice è configurabile.
Esempio di webservice PHP:
ob_start ();
$ sRepTraceGPS = "myrep";
$ json = array ("success" => true);
$ jsonDataIN = json_decode ($ _ POST ["json"], true);
for ($ f = 0; $ f {
$ sFileBase = $ sRepTraceGPS. "/". $ JsonDataIN [$ f] [ "file_name"];
file_put_contents ($ sFileBase, $ jsonDataIN [$ f] ["contents"]);
}
$ json ["nb_trace"] = count ($ jsonDataIN);
ob_clean ();
intestazione ("Content-type: text / html; charset = utf-8");
echo json_encode ($ json);
?>