blob: 06de52b2b07e52177501cb00dda5223db752bdde [file] [log] [blame]
<?php
require_once(__DIR__."/../core.php");
if (php_sapi_name() != "cli") {
security::notFound();
exit();
}
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']);