fix(560-4): D02 서버 경위도 소수 7 자리로 받음 — 되돌아온 값 37.699999… 꼴 없음

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-27 20:20:43 +09:00
co-authored by Claude Opus 5.5
parent c8f7dc405a
commit ebc7922a8a
+2 -1
View File
@@ -62,7 +62,8 @@ async function request<T>(path: string, init?: RequestInit): Promise<T> {
/** 서버 두 점 → [시점, 종점] */
function boundaryPoints(view: PointsView): Array<LonLat | null> {
const pick = (p: ServerPoint | null): LonLat | null => (p ? { lon: p.lon, lat: p.lat } : null);
const pick = (p: ServerPoint | null): LonLat | null =>
p ? { lon: +p.lon.toFixed(DIGITS), lat: +p.lat.toFixed(DIGITS) } : null;
return [pick(view.start), pick(view.end)];
}