Skip to content

Commit

Permalink
parking-a22: add netex parking metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
clezag committed May 15, 2024
1 parent 024e0f5 commit 2db3535
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.slf4j.LoggerFactory;
import org.slf4j.Logger;
Expand All @@ -30,6 +31,7 @@
import it.bz.idm.bdp.dto.SimpleRecordDto;
import it.bz.idm.bdp.dto.StationDto;
import it.bz.idm.bdp.dto.StationList;
import it.bz.idm.bdp.util.Utils;

@Component
public class MainA22Parking {
Expand Down Expand Up @@ -109,6 +111,18 @@ public void execute() {
stationDto.getMetaData().put(STATION_METADATA_IDDIREZIONE, idDirezione);
stationDto.getMetaData().put(STATION_METADATA_METRO, parkInfo.getMetro());
stationDto.getMetaData().put(STATION_METADATA_AUTOSTRADA, parkInfo.getAutostrada());

Map<String, Object> netexParking = Utils.mapOf(
"type", "motorwayParking",
"vehicletypes", "heavyGoodsVehicle",
"layout", "openSpace",
"hazard_prohibited", true,
"charging", false,
"surveillance",false,
"reservation", "noReservations"
);

stationDto.getMetaData().put("netex_parking", netexParking);

stationDtoMap.put(IDENTIFIER_NAMESPACE + ":" + parkInfo.getId().toString(), stationDto);
}
Expand Down

0 comments on commit 2db3535

Please sign in to comment.