Folder of gtfs zip files in config file

Hi Team,

I have almost 2000+ zip files downloaded from open source website representing several gtfs individual data across planet. I know we can give multiple zip file names separated by comma in the config file

  # for multiple files you can use: gtfs.file:,,

A trivial quick check, could you please confirm where there is a way of giving folder path where all 2000+ zip files are kept available or give path with wild card like data/*.zip?

If no such provision available, can someone suggest best way to handle this or updating the code to loop all zip files is the only solution?

Thank you very much !


Currently there is no other way than to specify individual files. But I doubt it will work memory-wise with so many zip files. Try with a few files first and then increase the file size and memory…

Thanks for the reply @karussell . I have plenty of RAM around 250GB.

Now that I had changed the code to handle folder path and loop through all 2000+ zip files to process, however, after building the pt network, code broke while performing interpolate transfers with below exception.

Caused by: java.lang.IllegalStateException: Maximum edge count exceeded: 2147483647
	at com.graphhopper.gtfs.PtGraph.addEdge(
	at com.graphhopper.gtfs.PtGraph.createEdge(
	at com.graphhopper.gtfs.GtfsReader.insertTransferEdges(
	at com.graphhopper.gtfs.GtfsReader.insertTransferEdges(
	at com.graphhopper.gtfs.GraphHopperGtfs.insertInterpolatedTransfer(
	at com.graphhopper.gtfs.GraphHopperGtfs.lambda$interpolateTransfers$6(
	at java.base/$ForEachOp$OfRef.accept(
	at java.base/$3$1.accept(
	at java.base/$1$2.accept(
	at java.base/java.util.Iterator.forEachRemaining(
	at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(
	at java.base/
	at java.base/
	at java.base/$ForEachOp.evaluateSequential(
	at java.base/$ForEachOp$OfRef.evaluateSequential(
	at java.base/
	at java.base/
	at com.graphhopper.gtfs.GraphHopperGtfs.interpolateTransfers(
	at com.graphhopper.gtfs.GraphHopperGtfs.importPublicTransit(

Can someone please confirm that whether or not graphhopper supports GTFS routing with such a huge number of gtfs zip file building across planet? If it doesn’t, is there any alternative solution to host gtfs routing planet-wide?