@golemio/parkings
Version:
Golemio Parkings Module
26 lines • 1.22 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.OsmParkingMachinesTransformation = void 0;
const AbstractTransformation_1 = require("@golemio/core/dist/helpers/transformation/AbstractTransformation");
const SourceEnum_1 = require("../../../helpers/constants/SourceEnum");
class OsmParkingMachinesTransformation extends AbstractTransformation_1.AbstractTransformation {
constructor(transformationDate) {
super();
this.transformationDate = transformationDate;
this.name = "OsmParkingMachinesTransformation";
this.transformInternal = (parkingMachine) => {
return {
id: `${SourceEnum_1.SourceEnum.OSM}-${parkingMachine.properties.osm_id}`,
source: SourceEnum_1.SourceEnum.OSM,
sourceId: parkingMachine.properties.osm_id,
code: null,
type: "payment_machine",
location: parkingMachine.geometry,
validFrom: this.transformationDate,
active: true,
};
};
}
}
exports.OsmParkingMachinesTransformation = OsmParkingMachinesTransformation;
//# sourceMappingURL=OsmParkingMachinesTransformation.js.map