From 64a38ea8bf0977e3fbe288691b495ae5c61135a8 Mon Sep 17 00:00:00 2001 From: Simon Dalvai Date: Tue, 20 Aug 2024 14:24:52 +0200 Subject: [PATCH] parking-offstreet-sta: fix city metadata for brunico --- .../parking-offstreet-sta/src/dc/job.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/data-collectors/parking-offstreet-sta/src/dc/job.go b/data-collectors/parking-offstreet-sta/src/dc/job.go index 2a4401d0..56b9f818 100644 --- a/data-collectors/parking-offstreet-sta/src/dc/job.go +++ b/data-collectors/parking-offstreet-sta/src/dc/job.go @@ -69,6 +69,14 @@ func Job() { "Telephone2": facility.Telephone2, "municipality": facility.City, } + + // set City=Brunico for parking lot "Parcheggio Stazione Brunico Mobilitätszentrum" + // old api gives wrongly Bolzano + if parentStationCode == 608612 { + parentStation.MetaData["City"] = "Brunico" + parentStation.MetaData["municipality"] = "Brunico" + } + parentStations = append(parentStations, parentStation) freePlaces := GetFreePlacesData(facility.FacilityId) @@ -102,6 +110,13 @@ func Job() { station.MetaData["FacilityDescription"] = freePlace.FacilityDescription station.MetaData["municipality"] = facility.City + // set City=Brunico for parking lot "Parcheggio Stazione Brunico Mobilitätszentrum" + // old api gives wrongly Bolzano + if parentStationCode == 608612 { + station.MetaData["municipality"] = "Brunico" + } + + stations[stationCode] = station slog.Debug("Create station " + stationCode) }