This commit is contained in:
Andras Schmelczer 2026-05-11 21:38:26 +01:00
parent 9248e26af2
commit f2a2651b8a
95 changed files with 3993 additions and 1471 deletions

View file

@ -31,7 +31,7 @@ import java.util.concurrent.atomic.AtomicInteger;
* Output per mode: one parquet file per origin in {output-dir}/{mode}/{name}.parquet
* with columns (pcds VARCHAR, travel_minutes SMALLINT). Transit mode additionally
* includes a best_minutes SMALLINT column (5th percentile = best-case departure timing)
* and optionally a journey VARCHAR column (JSON leg instructions, when --paths is set).
* and a journey VARCHAR column with JSON leg instructions.
*/
public class App {
@ -46,7 +46,7 @@ public class App {
String placesPath = requiredArg(args, "--places");
String outputDirStr = requiredArg(args, "--output-dir");
int threads = Integer.parseInt(optionalArg(args, "--threads", "4"));
boolean enablePaths = hasFlag(args, "--paths");
boolean enablePaths = true;
boolean demo = hasFlag(args, "--demo");
Path outDir = Paths.get(outputDirStr);
@ -300,7 +300,7 @@ public class App {
if (args[i].equals(name)) return args[i + 1];
}
System.err.println("Missing required argument: " + name);
System.err.println("Usage: App --postcodes FILE --places FILE --output-dir DIR [--threads N] [--paths] [--demo]");
System.err.println("Usage: App --postcodes FILE --places FILE --output-dir DIR [--threads N] [--demo]");
System.exit(1);
return null; // unreachable
}