"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MetroRailtrackDataTransformation = void 0;
const AbstractTransformation_1 = require("@golemio/core/dist/helpers/transformation/AbstractTransformation");
class MetroRailtrackDataTransformation extends AbstractTransformation_1.AbstractTransformation {
    constructor() {
        super();
        this.name = "MetroRailtrackData";
        this.transformInternal = (element) => {
            return {
                track_id: element.track_section,
                route_name: element.line,
                coordinates: {
                    type: "Point",
                    coordinates: [Number.parseFloat(element.gps_lon), Number.parseFloat(element.gps_lat)],
                },
                gtfs_stop_id: element.stop_id === "" ? null : element.stop_id,
            };
        };
    }
}
exports.MetroRailtrackDataTransformation = MetroRailtrackDataTransformation;
//# sourceMappingURL=MetroRailtrackDataTransformation.js.map