Hi Andrew,
The converter code on the Google Code page
http://code.google.com/p/googletransitdatafeed/
is still being maintained. There is one fork that I am aware of, as
described here:
http://groups.google.com/group/googletransitdatafeed/browse_thread/thread/5e87963df4be502b#
There has been an export of all of Great Britain in 2011, but that was
it.
http://data.gov.uk/dataset/nptdr
That made me lose interest to keep pushing the converter code base. So
I did not pursue the integration of the changes as documented in the
issue tracker. Switching over to v2 CSV format however should be a
pretty straightforward exercise, so let me see that I can roll your
patches into the converter code base. I haven't reviewed them yet, but
thank you for the contribution!
On the radar... in the meantime, I've become aware of another source
for country wide data. Coincidentally, I put the paperwork in the mail
yesterday, so if everything checks out I think I will be compelled to
put work into the converter code base again.
JP
On Apr 21, 6:55 am, Andrew Byrd <
and...@fastmail.net> wrote:
> I am experimenting with converting the TfL data set to GTFS, with the
> intent to eventually convert data for other parts of the UK.
>
> In the process, I ran into a couple of issues and patched the source code
> before realizing that these were known issues and patches were included in
> these existing tickets:
> Issue 334: Transxchange2GoogleTransit doesn't support NaPTAN v2.x CSV
> Issue 336: Transxchange2GoogleTransit has an ArrayOutOfBoundsException when
> NaPTAN BusStopTypes are empty
>
> My patch (attached) is slightly different in that it detects whether quotes
> are present before attempting to strip them out, and should work with
> either v1 or v2 NaPTAN files, simply falling back on the v2 field name when
> the v1 field name is not present (as suggested
> inhttps://
groups.google.com/d/msg/googletransitdatafeed/XoeWPfS-UCs/b9N...).
> Tabs and spaces might be mixed because they were mixed in the original code
> and I wasn't sure which to use on this project.
>
> A couple of questions:
> 1. The currently available NaPTAN data seems to be version 2, so the
> converter available via SVN athttp://
code.google.com/p/googletransitdatafeed/<
https://code.google.com/p/googletransitdatafeed/> fails
> on current data and must be patched. Is the code available there still
> maintained, or has the main repo moved elsewhere?
> 2. Can anyone point me to some v1 NaPTAN (or just a Stops file) for testing
> purposes?
>
> Thanks!
> Andrew
>
> naptan_v2.patch
> 8KViewDownload