Skip to content

TransiTime Import

Claudiu Bogdan Minea edited this page Dec 19, 2021 · 8 revisions

Importing GTFS data to the database

Import data for each one of your agencies. There's also a meta "ActiveRevisions" table in the database which needs to be incremented in order to match your import.

java \
  -Xmx1024M \
  -Dtransitclock.logging.dir=/tmp \
  -Dtransitclock.configFiles=/usr/local/transitclock/config/AGENCY.xml  \
  -jar transitclock/target/GtfsFileProcessor.jar \
  -storeNewRevs \
  -gtfsZipFileName /PATH/TO/YOUR/GTFS.zip \
  -maxTravelTimeSegmentLength 400
java \
  -Xmx1024M \
  -Dtransitclock.logging.dir=/tmp \
  -Dtransitclock.configFiles=/usr/local/transitclock/config/SECONDARYAGENCY.xml  \
  -jar transitclock/target/GtfsFileProcessor.jar \
  -storeNewRevs \
  -gtfsZipFileName /PATH/TO/YOUR/SECONDARYGTFS.zip \
  -maxTravelTimeSegmentLength 400

Tips You may change -gtfsZipFileName /local/archive.zip to -gtfsUrl http://remote/path.zip or -gtfsDirectoryName /local/folder in these commands depending on the location and format of your feed.

Clone this wiki locally