카테고리 없음

오픈소스 소개(Querying and Visualising Location Data in BigQuery Using Google Maps )

욘두 우돈타 2020. 3. 15. 17:58

구글 맵을 활용한 위치 정보를 Visualising하는 오픈소스에 대해 소개하겠습니다.

최근 코로나의 전염으로 인해 한 프로그래머가 만든 '코로나맵'이 큰 인기를 얻었습니다.

정부가 제공했던 다른 정보들에 비해서 지도상에 확진자들의 위치와 동선을 점과 선으로 한 눈에 알아볼 수 있게 비쥬얼라이징 했던 것이 큰 장점이었습니다.

이처럼, 위치간의 연관성이 있는 데이터를 시각화하는 것은 매우 강력한 툴입니다.

정보의 전달과 여러 추이를 분석하고 활용하는데 유용합니다.

이번 과제를 통해서 쿼리를 통해서 지도상에 시각화를 하는 과정을 경험해보겠습니다.

매우 큰 데이터들을 활용하기에 용이한 Google BigQuery로 데이터를 쿼리하고 Google Map API로 시각화 작업을 해보도록 하겠습니다.

<사용되는 기술>

Big Query

 빅쿼리는 구글의 데이터 분석 서비스입니다. 특히 규모가 큰 데이터셋을 다룰 때 사용됩니다. SQL로 쓰여진 쿼리들을 지원합니다. 위도와 경도의 테이터를 가지고 위치 데이터를 쿼리합니다. 장점은 서버나 데이터베이스를 가지고 있지 않더라도 규모가 큰 데이터셋을 활용할 수 있습니다. 

Google Maps Platform

 구글맵 플랫폼은 구글 맵과 장소, 루트에 대한 데이터에 접근 할 수 있게 해줍니다.

 

아래의 api를 이용해서 설치를 해보도록 하겠습니다.

https://github.com/google/google-api-javascript-cli

불러오는 중입니다...

https://cloud.google.com/bigquery/docs/reference/rest

 

BigQuery API  |  Google Cloud

A data platform for customers to create, manage, share and query data. Service: bigquery.googleapis.com We recommend that you call this service using Google-provided client libraries. If your application needs to call this service using your own libraries,

cloud.google.com

구글 코드랩에서 이 과정을 통해 배우는 것은 아래와 같습니다.

  • How to query petabyte-scale location datasets in seconds with BigQuery, using SQL queries, User Defined Functions and the BigQuery API
  • How to use the Google Maps Platform to add a Google Map to a web page and enable users to draw shapes on it
  • How to visualize queries against large datasets on a Google Map like in the example image below, which shows the density of taxi drop off locations in 2016 from journeys that started from the block around the Empire State Building.