import { jsx as c } from "react/jsx-runtime";
const a = (o, t, s) => {
  const e = o >= 0 ? t : s, n = Math.abs(o), r = Math.floor(n), i = (n - r) * 60;
  return `${e}${r}° ${i.toFixed(3)}′`;
}, d = (o) => {
  const { latitude: t, longitude: s, address: e } = o;
  return /* @__PURE__ */ c("span", { className: "vehiclePositionInfo", children: e || `${a(t, "N", "S")} ${a(s, "E", "W")}` });
};
export {
  d as default
};
//# sourceMappingURL=Position.js.map
