섹션2-8 openWeatherMap API
const weatherSearch = function (position) { const openWeatherRes = fetch( `https://api.openweathermap.org/data/2.5/onecall?lat=${position.latitude}&lon=${position.longitude}&appid=4bdfd4f45f4d597908e29058919e8707` ); console.log(openWeatherRes); }; const accessToGeo = function (position) { const positionObj = { latitude: position.coords.latitude, longitude: position.coords.longitude, }; weatherSearch(positionObj); }; const askForLocation = function () { navigator.geolocation.getCurrentPosition(accessToGeo, (err) => { console.log(err); }); }; askForLocation();
fetch 안에 2.5로 변경해도 계속 오류가 떠요 ㅠ

어떻게 해야하나요?
답변 1
0
안녕하세요! 소진님!
동일한 질문에 대한 답변이 기존에 존재하여, 링크를 보내드립니다!
아래 링크를 확인해 주세요!
소스코드즘 부탁드립니다.
0
42
1
윈도우에서 Node js를 설치하고 싶어요
0
44
0
그래프 ql 문서 사용할때 느낌표 남는거 어떻게 없애나요?
0
121
2
강의 전체 소스 코드를 받고싶습니다.
0
122
2
fontawesome 사용 문의
0
122
2
소스 코드 부탁드립니다~
0
130
2
깃 레포지터리 소스
0
127
2
커리큘럼12.css 정렬 에 나오는 과제 정답알고싶어요
0
102
2
10-01 Entity TypeOrmModule.forRoot 에 entities
0
129
3
강의 버전관련 문의입니다
0
134
2
Ubuntu 설치 관련
0
87
1
schema.gql 질문 드립니다.
0
76
1
서버 재실행시 Many to Many
0
153
3
input 관련 문의
0
120
2
Rest API 보다는 graphql이 주된 내용인데
0
162
2
강의 전체 소스코드 받을수있을까요?
0
190
1
도커볼륨 마운트 관련
0
167
2
findOne 타입스크립트오류
0
134
1
http => htrtps 호출 인증서 신뢰 오류
0
408
1
self-signed certificate in certificate chain 에러 발생
0
478
1
mongoose 설치 오류
0
167
1
특정 API, 특정 IP 허용 (단일경로에 CORS 활성화)
0
317
2
08-06
0
211
3
구조랑 패턴 관련해서 질문
0
140
2





