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) }