UNPKG

@golemio/parkings

Version:
29 lines 1.5 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.IptOictEntrancesTransformation = void 0; const AbstractTransformation_1 = require("@golemio/core/dist/helpers/transformation/AbstractTransformation"); class IptOictEntrancesTransformation extends AbstractTransformation_1.AbstractTransformation { constructor(source) { super(); this.source = source; this.name = "IptOictEntrancesTransformation"; this.transformInternal = (element) => { return { entrance_id: element.properties.source_id, source: this.source, parking_id: `${this.source}-${element.properties.parking_id}`, location: element.geometry, entry: element.properties?.entry ?? null, exit: element.properties?.exit ?? null, entrance_type: element.properties?.entrance_type?.length ? element.properties?.entrance_type : null, level: element.properties.level, max_height: element.properties?.dimension?.max_height, max_width: element.properties?.dimension?.max_width ?? null, max_length: element.properties?.dimension?.max_length ?? null, max_weight: element.properties?.dimension?.max_weight ?? null, }; }; } } exports.IptOictEntrancesTransformation = IptOictEntrancesTransformation; //# sourceMappingURL=IptOictEntrancesTransformation.js.map