A tool that validates General Transit Feed Specification (GTFS)-realtime feeds
Read more in this Medium article.
Questions? You can open an issue, ask the GTFS Slack Group or reach out to the GTFS-realtime Google Group.
Please note that this project is still under active development and is in an early alpha state.
java -Djsse.enableSNIExtension=false -jar gtfs-realtime-validator-webapp-1.0.0-SNAPSHOT.jar
java -Djsee.enableSNIExtension=false --add-modules java.xml.bind -jar gtfs-realtime-validator-webapp/target/gtfs-realtime-validator-webapp-1.0.0-SNAPSHOT.jarhttp://localhost:8080Please note that if you're using https URLS, you'll need to use the -Djsse.enableSNIExtension=false command-line parameter or install the Java Cryptography Extension (JCE) - see the Prerequisites section for details.
See the batch processing section of the gtfs-realtime-validator-lib README.
Have a suggestion for a new rule? Open an issue with the "new rule" label. You can see the complete process for adding new rules on the Adding new rules page.
There are two components to this project:
The main gtfs-realtime-validator-webapp user interface is implemented as a web application, with the backend code written in Java. An instance of the Jetty embedded server is used to run the application, with Hibernate used for data persistence.
Following are the requirements to build and run the project from source code:
If you're using https URLs for GTFS or GTFS-rt feeds, either:
-Djsse.enableSNIExtension=false parameter when running the toolUS_export_policy.jar and local_policy.jar files in your JVM /security directory, such as C:\Program Files\Java\jdk1.8.0_73\jre\lib\security, with the JAR files in the JCE Extension download.From the command-line, run:
mvn package
This will generate an executable file in the gtfs-realtime-validator-webapp/target/ directory with all the dependencies needed to run the web application.
Note that this might take a while - this project also builds and packages the gtfs-validator so a static GTFS validation report can be seen within the GTFS-rt validator tool.
If you're going to be rebuilding the project frequently (e.g., editing source code), we suggest you load the project as Maven project in an IDE like IntelliJ or Netbeans.
To start up the server so you can view the web interface, from the command-line, run:
Java 8 and lower: java -Djsse.enableSNIExtension=false -jar gtfs-realtime-validator-webapp/target/gtfs-realtime-validator-webapp-1.0.0-SNAPSHOT.jar
Java 9 and above: java -Djsee.enableSNIExtension=false --add-modules java.xml.bind -jar gtfs-realtime-validator-webapp/target/gtfs-realtime-validator-webapp-1.0.0-SNAPSHOT.jar
You should see some output, and a message saying Go to http://localhost:8080 in your browser.
Once the application has been started, you can enter URLs for the feeds you'd like to have validated at:
See our Configuration Guide for various configuration options, including changing the port number that the server runs on, what database it connects to, and more.
Note that the validator also has a batch processing mode - see the gtfs-realtime-validator-lib README.
Want to run this in Docker? Check out gtfs-realtime-validator-docker.
Having problems? Check out our Troubleshooting guide.
Snapshots
We've set up a Maven repository to hold the snapshot artifacts from this project in a Github project - cutr-mvn-repo.
At CUTR, we should run the following at the command-line to create a new artifact:
mvn -Dgpg.skip -DaltDeploymentRepository=cutr-snapshots::default::file:"/Git Projects/cutr-mvn-repo/snapshots" clean deploy
Then commit using Git and push new artifacts to Github.
If you want to include snapshot releases in your project, you'll need to add the following to the pom.xml of the project you want to use it in:
<!-- CUTR SNAPSHOTs/RELEASES -->
<repositories>
<repository>
<id>cutr-snapshots</id>
<url>https://raw.githubusercontent.com/CUTR-at-USF/cutr-mvn-repo/master/snapshots</url>
</repository>
</repositories>
This project was funded by the National Institute for Transportation Communities (NITC) via the project "Overcoming Barriers for the Wide-scale Adoption of Standardized Real-time Transit Information". It also includes work funded under the 2015 Google Summer of Code.
Content type
Image
Digest
Size
203.1 MB
Last updated
about 7 years ago
docker pull thzinc/gtfs-realtime-validator