UK2GTFS icon indicating copy to clipboard operation
UK2GTFS copied to clipboard

Shapes data

Open danieljuschus opened this issue 3 years ago • 5 comments

I noticed that the function atoc2gtfs generates an error ("Shapes are not yet supported") if shapes = True. Has this just not been implemented yet, or does the data from atoc.org not include shape information at all? I tried to take a quick look at their manual, but I couldnt't figure it out.

danieljuschus avatar Dec 19 '21 16:12 danieljuschus

The feature hasn't been properly implemented. The ATOC data does not include the necessary information so I'd started implementing my own solution but it was very time consuming.

There is some old code https://github.com/ITSLeeds/UK2GTFS/blob/2a376bc88e4dfa3f1f0f331139c1685dfff0dbe4/R/atoc_shapes.R if your intrested

mem48 avatar Dec 22 '21 10:12 mem48

Alright! I've tried to use this: https://github.com/ad-freiburg/pfaedle but it didn't work with the output from UK2GTFS. The problem is that there are some stop_id values in stop_times.txt which don't appear in stops.txt. Is that a know problem?

danieljuschus avatar Dec 22 '21 12:12 danieljuschus

Thanks for this, I have a look and see if I can get it working with UK2GTFS

mem48 avatar Jan 15 '22 15:01 mem48

I'm not doing anything clever and it's very messily put together, but I'm now using pfaedle in my Wales-centric processing.

(I note that I do filter out some inconsistencies as part of chopping outputs down to a particular space and time, and then I put the GTFS files through gtfstidy before pfaedle.)

stupidpupil avatar May 12 '22 21:05 stupidpupil

@stupidpupil & @danieljuschus FYI I've now added support for this as a separate function https://itsleeds.github.io/UK2GTFS/reference/ATOC_shapes.html Needs mor testing before rolling into the main function

mem48 avatar Jul 17 '23 09:07 mem48