일단 익숙해지면 완벽히 새롭고 더 생산적인 방법으로 사고방식이 바뀐 걸 발견하게 될 겁니다.
19.2.
지오코딩
지오코딩은 거리 주소나 장소 이름(서울 마포구 서교동
48026
)을 받아 지리 좌표(위도
37
.
5542296
경도
126
.
9135873
)로 변환하는 작업입니다. 애플리케이션에서 거리나 방향 같
은 지리적 계산이 필요거나 지도를 표시하려면 지리 좌표가 있어야 합니다.
NOTE
_
지리 좌표를 도
degree
, 분
minute
, 초
second
(
DMS
)로 표시하는 데 익숙한 사람도 있습니다. 지오코딩
API
와 지도 서비스는 위도와 경도에 단정도 부동소수점 숫자를 씁니다.
DMS
좌표로 표시해야 한다면
http
://
en
.
wikipedia
.
org
/
wiki
/
geographic
_
coordinate
_
conversion
를 참고하십시오.
19.2.1.
구글을 이용한 지오코딩
구글과 빙은 모두 뛰어난 지오코딩
REST
서비스를 제공합니다. 예제에서는 구글을 이용하겠
지만 빙 서비스도 매우 비슷하게 이용할 수 있습니다. 먼저
lib
/
geocode
.
js
모듈을 만듭시다.
var http
=
require
('
http
');
module
.
exports ...
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.
O’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
I wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
I’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
I'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.