bahnui/back/node_modules/hafas-client/format/rectangle.js
2024-11-15 23:23:46 +01:00

17 lines
279 B
JavaScript

const formatRectangle = (profile, north, west, south, east) => {
return {
llCrd: {
x: profile.formatCoord(west),
y: profile.formatCoord(south),
},
urCrd: {
x: profile.formatCoord(east),
y: profile.formatCoord(north),
},
};
};
export {
formatRectangle,
};