From b7efbbd33a41682634489dcef4af63caf62b500b Mon Sep 17 00:00:00 2001 From: Peder Vatn Austad Date: Mon, 20 May 2024 15:18:49 +0200 Subject: [PATCH] 0.1.3 now i know why it doesnt work... took me way to long :( --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 5cf575f..eb390d4 100644 --- a/main.go +++ b/main.go @@ -81,7 +81,7 @@ type Data struct { FramedVehicleJourneyRef struct { DataFrameRef string `xml:"DataFrameRef"` DatedVehicleJourneyRef string `xml:"DatedVehicleJourneyRef"` - } `xml:"FramedyfguVehicleJourneyRef"` + } `xml:"FramedVehicleJourneyRef"` Cancellation string `xml:"Cancellation"` JourneyPatternRef string `xml:"JourneyPatternRef"` JourneyPatternName string `xml:"JourneyPatternName"` @@ -130,7 +130,7 @@ type Data struct { func main() { // Fetch data from entur - resp, err := http.Get("https://api.entur.io/realtime/v1/rest/et?maxSize=50") + resp, err := http.Get("https://api.entur.io/realtime/v1/rest/et?maxSize=5") if err != nil { log.Fatal(err) }