Determining when GTFS Complete has been updated


#1

Is there a way to determine when the GTFS Complete data was last updated?
Preferably without downloading the whole zip every time (which is grossly inefficient, but the only thing I can think of at this stage).


#2

We’re looking into allowing HEAD requests so you can check when the file was last modified… stay tuned we’ll update when it’s available.


#3

Why not have a last updated text file as part of the feed?


#4

Feed comes as a single compressed package doesn’t it? Meaning that the entire package would have to be downloaded to determine if its been updated.


#5

Yes currently it’s one package


#6

HEAD requests with last-modified and content-length headers is the standard method of detecting an update.

The response is typically less than a few KB.


#7

We’ve just updated the API Gateway so it now supports HEAD requests for static / timetable type data.

Let us know how it goes!


#8

Oh good, I am seeing it working.

Thank you.:slight_smile: