Methods
-
<inner> defaultUpdate( agencyOptions, callback )
-
Description
This is the built-in default agency update check. This function is used if there is no agency-specific update script provided by the RightTrackAgency module for the agency.
• First, it performs a
HEADrequest on the update URL to get the server'slast-modifiedheader. It will compare this date/time to the one saved in the agency's gtfs directory in thepublished.txtfile.• If the
published.txtfile is not found or has an older date/time than the one provided in the server'slast-modifiedheader, it will download the zip file and unzip the contents into the agency's gtfs directory.Parameters
Name Type Description agencyOptionsAgencyOptions Agency Build Options
callbackupdateCallback callback function when update is complete
Details