commit | 99bb77c461f6e5dc41805e78a8e54927718ff1fd | [log] [tgz] |
---|---|---|
author | avm99963 <jocdeladria@gmail.com> | Mon Jan 27 03:15:08 2020 +0100 |
committer | avm99963 <jocdeladria@gmail.com> | Mon Jan 27 03:15:08 2020 +0100 |
tree | 5d39d36d3f747f3bd884cd215f1208aca6a43d85 |
First prototype
diff --git a/cron/parsegtfs.php b/cron/parsegtfs.php new file mode 100644 index 0000000..6965136 --- /dev/null +++ b/cron/parsegtfs.php
@@ -0,0 +1,10 @@ +<?php +require_once(__DIR__."/../core.php"); + +echo "[info] Getting gtfs.zip file...\n"; +$temp = tmpfile(); +tmbApi::request("static/datasets/gtfs.zip", $temp); + +echo "\n"; + +gtfsHandler::createDatabase(stream_get_meta_data($temp)['uri']);