Skip to Content
한 권으로 끝내는 Node & Express(2판): 모던 웹을 위한 서버 사이드 자바스크립트의 모든 것
book

한 권으로 끝내는 Node & Express(2판): 모던 웹을 위한 서버 사이드 자바스크립트의 모든 것

by 한선용, 이선 브라운
May 2021
Beginner to intermediate
448 pages
9h 47m
Korean
Hanbit Media, Inc.
Content preview from 한 권으로 끝내는 Node & Express(2판): 모던 웹을 위한 서버 사이드 자바스크립트의 모든 것
444
한 권으로 끝내는 Node & Express
“OC39”: “Cannon Beach, Oregon, USA”,
“B99”: “Bend, Oregon, USA”,
}
let { search } = location
if (typeof search !== ‘string’ || !/\w/.test(search)) {
search = geoSearch[sku]
}
try {
const coordinates = await geocode(search)
await db.updateVacationBySku(sku, { location: { search, coordinates } })
console.log(`SKU ${sku} SUCCESS: ${coordinates.lat}, ${coordinates.lng}`)
} catch(err) {
return console.log(`SKU {sku} FAILED: ${err.message}`)
}
}))
}
지오코딩을 시도하고 ‘
no
results
for
Cannon
Beach
,
Oregon
,
USA
”’ 같은 결과를 확
인했다면 구글 개발자 콘솔에서 청구 정보 입력을 깜박했기 때문입니다.
https
://
maps
.
googleapis
.
com
/
maps
/
api
/
geocode
/
json
?
address
=
Cannon
%
20Beach ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

한 권으로 끝내는 Node & Express: 웹사이트 구축을 위한 서버 사이드 자바스크립트

한 권으로 끝내는 Node & Express: 웹사이트 구축을 위한 서버 사이드 자바스크립트

한성용, 이선 브라운

Publisher Resources

ISBN: 9791162244227