You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
useEffect(()=>{varlat=37.8864916;varlng=127.7364351;navigator.geolocation.getCurrentPosition((pos)=>{lat=pos.coords.latitude;lng=pos.coords.longitude;});letcalcDistance=(p)=>{returnMath.sqrt(Math.pow(p.latitude-lat,2)+Math.pow(p.longitude-lng,2));}// 군집 대표 좌표 리스트 서버에서 받아오기axios.get('/api/report/location/union')// <------------------- 존재하지 않는 API를 호출함.then(res=>{// 거리를 기준으로 정렬res.sort((a,b)=>calcDistance(a)-calcDistance(b));setPath([res[0],res[1],]);}).catch(error=>{console.log(error);})},[])
Invalid api call in getPathView
수정 사항
추가 컨텍스트
The text was updated successfully, but these errors were encountered: