giuseppebianchi / gtfs-shapes-validator

GTFS Shapes Validator is a web tool that allows you to validate and fix shapes in your GTFS.

Home Page:https://giuseppebianchi.github.io/gtfs-shapes-validator/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GTFS Shapes Validator

Shapes describe the path that a vehicle travels along a route alignment, and are defined in the file shapes.txt. Shapes are associated with Trips, and consist of a sequence of points through which the vehicle passes in order. Google GTFS Shape Reference

GTFS Shapes Validator is a web tool to check shape points of paths in your GTFS and fix shape errors as you can see below.

Have you ever seen strage shapes like this in your application?

GTFS Shapes Validator

So start validating your GTFS here.

Validate and fix shapes of your GTFS

It uses the in-browser CSV parser Papaparse to read the content of shape.txt file, in your GTFS.

Once the CSV is validated, Shapes Validator detects any shape point that is not contained in the central area, built with center and radius values.

Usage

  • Import the shape.txt file from your unzipped GTFS file.
  • Set a fixed point on map, which will be the center of all shapes.
  • Set the max distance from center to build an area that should contain all shape points.

Results

GTFS Shapes Validator will return all shapes found in shapes.txt, as a list, grouped by shape_id value, and it allows you to:

  • show details of any shape
  • show invalid shape points on map
  • fix a single shape
  • correct auto-fixed shapes with a nice UI, just by dragging shape points on map where they should be
  • export new shapes as CSV, to replace shapes.txt in your GTFS file, or JSON

GTFS Shapes Validator

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Copyright (c) 2020 Giuseppe Bianchi

About

GTFS Shapes Validator is a web tool that allows you to validate and fix shapes in your GTFS.

https://giuseppebianchi.github.io/gtfs-shapes-validator/

License:MIT License


Languages

Language:JavaScript 85.8%Language:CSS 7.9%Language:HTML 6.3%