Git Product home page Git Product logo

gtfs-validator's Introduction

gtfs-validator

A Java framework for GTFS validation and statistics.

Build Status

How is this different than the Google-supported validator?

The Google TransitFeed-based validator is written in Python, and is quite slow on large feeds. I also find the code rather hard to understand. While it supports extensions, few have extended it.

This validator uses the Onebusaway-GTFS library, written in Java and is far faster at processing large feeds.

How is this different than Conveyal's branch?

This project originated at Conveyal. This fork includes a number of updates and improvements, namely:

  • Requiring Java 8
  • Updated dependencies to currently supported versions
  • Minor bug fixes and light refactoring
  • More testing
  • Continuous Integration via Travis, and
  • A number of additional validations

Using this framework

There are then multiple options for use:

  1. Use the JAR provided in the releases. java -jar gtfs-validator.jar yourGtfs.zip

  2. Import the services provided and build your own validation.

  3. Use the gtfs-validator-json and gtfs-validator-webapp according to the directions in those folders.

============== ValidatorMain

The ValidatorMain class logs a number of common GTFS errors to Standard Out on the console when run as a JAR. This includes:

  • Problems with route names
  • Bad shape coordinates
  • Unused stops
  • Duplicate stops
  • Missing stop coordinates
  • Missing stop times for trips
  • Stop times out of sequence
  • Duplicated trips (same times)
  • Overlapping trips when block_id is present
  • Missing shapes and shape coordinates
  • “Reversed” shapes with directions that do not agree with stop times.
  • Exhaustively going through the calendar and printing active service IDs and number of trips for that day.
  • Dates with no active service

gtfs-validator's People

Contributors

kpwebb avatar laidig avatar landonreed avatar mattwigway avatar sheldonabrown avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.