Aero GPS Recorder APP
用于记录ULM比赛痕迹的应急系统。
生成的文件为CSV格式。它们可以通过Web服务传输到服务器,非常容易实现。
Web服务的URL是可配置的。
PHP 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();
header(“Content-type:text / html; charset = utf-8”);
echo json_encode($ json);
?>