blob: 06de52b2b07e52177501cb00dda5223db752bdde [file] [log] [blame]
avm9996399bb77c2020-01-27 03:15:08 +01001<?php
2require_once(__DIR__."/../core.php");
3
avm99963b65405c2020-01-27 03:31:40 +01004if (php_sapi_name() != "cli") {
5 security::notFound();
6 exit();
7}
8
avm9996399bb77c2020-01-27 03:15:08 +01009echo "[info] Getting gtfs.zip file...\n";
10$temp = tmpfile();
11tmbApi::request("static/datasets/gtfs.zip", $temp);
12
13echo "\n";
14
15gtfsHandler::createDatabase(stream_get_meta_data($temp)['uri']);