Skip to content

Commit

Permalink
parking-offstreet-sta: fix city metadata for brunico
Browse files Browse the repository at this point in the history
  • Loading branch information
dulvui committed Aug 20, 2024
1 parent e9ed470 commit 64a38ea
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions data-collectors/parking-offstreet-sta/src/dc/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 64a38ea

Please sign in to comment.