osm-ToniE / gtfs-feeds

Collection of definition files (sqlite tables) for the GTFS analysis of the PTNA tool
GNU General Public License v3.0
3 stars 5 forks source link

gtfs:shape_id not found #33

Closed mgageo closed 2 weeks ago

mgageo commented 2 weeks ago

For the analysis https://ptna.openstreetmap.de/results/FR/BRE/FR-BRE-CTRL-Analysis.html relation https://www.openstreetmap.org/relation/9215225 gtfs:shape_id CTRL:5405$22

I found the data in the file shapes.txt

/mnt/d/web.var/TRANSPORT/KORRIGO$ grep 'CTRL:5405$22,' shapes.txt | head CTRL:5405$22,47.9041252,-3.1352899,1,0 CTRL:5405$22,47.9041214,-3.1352849,2,0 CTRL:5405$22,47.9041481,-3.135148,3,11 CTRL:5405$22,47.9042091,-3.1351781,4,18 CTRL:5405$22,47.9042435,-3.135191,5,22 CTRL:5405$22,47.9042702,-3.135216,6,25 CTRL:5405$22,47.9042816,-3.1353309,7,34 CTRL:5405$22,47.9043007,-3.135421,8,41 CTRL:5405$22,47.9046021,-3.135437,9,75 CTRL:5405$22,47.9046745,-3.1354511,10,83

osm-ToniE commented 2 weeks ago

Actually it is not a bug in any PTNA repo.

shape_ids and also trip_ids seem not to be stable between two GTFS feed versions route_ids seem to be stable though

So, my advice would be to not map trip_id and shape_id in any route_master/route relation. You may map route_id in route_master/route relations though and of course in PTNA's CSV data.