Skip to content

Commit

Permalink
bike-boxes: don't limit netex metadata to hardcoded stations, just al…
Browse files Browse the repository at this point in the history
…ways add. what could go wrong?
  • Loading branch information
clezag committed Jul 8, 2024
1 parent f4922e6 commit 891e399
Showing 1 changed file with 8 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,17 +190,14 @@ DataTypes.usageState.key, mapBikeStationBayState(bs.state),
private void enrichNetexParking(StationDto dto) {
// Part of the MaaS4Italy project.
// https://github.com/noi-techpark/sta-nap-export/issues/1
// These 4 stations are the initial ones where we have hardcoded values, if there are new ones added it's probably good that something breaks
if (Set.of("1930", "1931", "1932", "1933").contains(dto.getId())) {
dto.getMetaData().put("netex_parking", Map.of(
"type", "other",
"layout", "covered",
"charging", false,
"reservation", "reservationRequired",
"surveillance", true,
"vehicletypes", "cycle",
"hazard_prohibited", true));
}
dto.getMetaData().put("netex_parking", Map.of(
"type", "other",
"layout", "covered",
"charging", false,
"reservation", "reservationRequired",
"surveillance", true,
"vehicletypes", "cycle",
"hazard_prohibited", true));
}

private String mapBikeStationType(int type) {
Expand Down

0 comments on commit 891e399

Please sign in to comment.