fix(560-4): D02 서버 경위도 소수 7 자리로 받음 — 되돌아온 값 37.699999… 꼴 없음
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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)];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user