lml-main
Version:
This is now a mono repository published into many standalone packages.
16 lines • 577 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const cosmo_redux_api_1 = require("@lml/cosmo-redux-api");
exports.getJobDirections = (state, refId) => {
const job = cosmo_redux_api_1.getJobById(state, refId);
return {
id: job.refId,
title: '',
waypoints: job.stops.map((s) => {
// todo - depracate this formatting function
const location = cosmo_redux_api_1.formatAddressOldToNew(s.location);
return location.position;
}),
};
};
//# sourceMappingURL=directions.js.map