@golemio/parkings
Version:
Golemio Parkings Module
25 lines • 1.17 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.IptOictParkingMachinesTransformation = void 0;
const AbstractTransformation_1 = require("@golemio/core/dist/helpers/transformation/AbstractTransformation");
class IptOictParkingMachinesTransformation extends AbstractTransformation_1.AbstractTransformation {
constructor(source) {
super();
this.source = source;
this.name = "IptOictParkingMachinesTransformation";
this.transformInternal = (element) => {
return {
id: `${this.source}-${element.properties.source_id}`,
source: this.source,
sourceId: element.properties.source_id,
code: element.properties.code,
type: element.properties.machine_type,
location: element.geometry,
validFrom: element.properties.valid_from ? new Date(element.properties.valid_from) : null,
active: true,
};
};
}
}
exports.IptOictParkingMachinesTransformation = IptOictParkingMachinesTransformation;
//# sourceMappingURL=IptOictParkingMachinesTransformation.js.map