UNPKG

@golemio/pid

Version:
21 lines 972 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PublicVPTripShapesTransformation = void 0; const AbstractTransformation_1 = require("@golemio/core/dist/helpers/transformation/AbstractTransformation"); const output_gateway_1 = require("@golemio/core/dist/output-gateway"); class PublicVPTripShapesTransformation extends AbstractTransformation_1.AbstractTransformation { constructor() { super(...arguments); this.name = "TripShapesTransformation"; this.transformInternal = (shape) => { const properties = { shape_dist_traveled: shape.dist, lng: shape.coords[0], lat: shape.coords[1], }; return (0, output_gateway_1.buildGeojsonFeature)(properties, "lng", "lat", true); }; } } exports.PublicVPTripShapesTransformation = PublicVPTripShapesTransformation; //# sourceMappingURL=PublicVPTripShapesTransformation.js.map