BlinkTagInc / gtfs-to-geojson

Generate geoJSON of transit route data from a GTFS file.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shapes.txt doesn't seem to be used

2803media opened this issue · comments

I use this tool to build missing shapes.txt from some GTFS : https://github.com/pailakka/gtfs-shape-router

the file created is here: https://gist.github.com/2803media/817034ceca0d3f3a14924c5c51d9377e

I use the gtfs here: http://transitfeeds.com/p/metropole-europeenne-de-lille/1202/latest/download

I copy the missing shapes.txt inside the unzip folder

But it seems that gtfs-to-geojson doesn't use the shapes.txt, do I miss something?

The result in QGIS:

Capture d’écran 2020-11-11 à 14 27 34

When I load the shapes.txt in QGIS the file seem good as you can see below:

Capture d’écran 2020-11-11 à 14 30 47

The geojson of the shapes.txt build with the tool to create the missing file seem also good:

Capture d’écran 2020-11-11 à 14 33 31

Thanks!

Each trip in trips.txt needs to have a shape_id in order to be matched with the correct shape file. http://gtfs.org/reference/static/#tripstxt

It's for that;)

Thanks for your kind reply!

The tool create a trips_shape.txt file, I just rename it and get the shapes in the geojson!

Capture d’écran 2020-11-11 à 22 34 09