2024-03-28 22:47:08 +00:00
|
|
|
package cif
|
|
|
|
|
2024-04-04 13:58:18 +01:00
|
|
|
import "time"
|
|
|
|
|
2024-03-29 14:01:57 +00:00
|
|
|
// The URL required for a daily update of the CIF Data - The 'day string' must be appended
|
2024-03-28 22:47:08 +00:00
|
|
|
const dailyUpdateUrl = "https://publicdatafeeds.networkrail.co.uk/ntrod/CifFileAuthenticate?type=CIF_ALL_UPDATE_DAILY&day=toc-update-"
|
2024-03-29 14:01:57 +00:00
|
|
|
|
|
|
|
// The URL required for a full fetch of the CIF Data
|
2024-03-28 22:47:08 +00:00
|
|
|
const fullUpdateUrl = "https://publicdatafeeds.networkrail.co.uk/ntrod/CifFileAuthenticate?type=CIF_ALL_FULL_DAILY&day=toc-full"
|
2024-04-04 13:58:18 +01:00
|
|
|
|
|
|
|
// The time at which CIF Data is expected to be available for download (full hour)
|
|
|
|
const dataAvailable = 6
|
|
|
|
|
2024-04-11 20:59:02 +01:00
|
|
|
// Define update type strings to pass into metadata
|
|
|
|
const fullUpdateType = "full"
|
|
|
|
const dailyUpdateType = "daily"
|
|
|
|
|
2024-04-04 13:58:18 +01:00
|
|
|
// An object representing the Europe/London timezone
|
2024-04-08 21:08:07 +01:00
|
|
|
var londonTimezone, _ = time.LoadLocation("Europe/London")
|