/google-maps-data-visualizer

https://vitorramos.github.io/google-maps-data-visualizer/

Primary LanguageJavaScript

Plot your coverage map using google maps data

This is a feature that I miss from the google maps timeline (https://www.google.com/maps/timeline), that doesn't plot all of your data at once.

How to use

Export your data from Google using the URL https://takeout.google.com/takeout/custom/mymaps,local_actions,location_history

Extract the locations from the location_history.json file located inside the takeout*.zip and load into the site

alt text

How it works

Components

Google maps data format

{
  "locations" : [ {
    ...
    "latitudeE7" : 533455708,
    "longitudeE7" : -62638089,
    ...
  },
  ...
  ]
}

How to converte latitudeE7, longitudeE7 to latitude, longitude

if (latitudeE7 > 900000000)
    latitudeE7 = latitudeE7 - 4294967296;
if (longitudeE7 > 1800000000)
    longitudeE7 = longitudeE7 - 4294967296;
latitudeE7 /= 1e7;
longitudeE7 /= 1e7;

Functionalities

  • Restrict the coverage area by clicking in 4 points on the screen.