<pclass="whats-new"><b>What's new:</b> 1000x faster processing time, heatmap controls, and more!</p>
<p>Welcome to <b>location-history-visualizer</b>, a tool for visualizing your collected Google <ahref="https://google.com/locationhistory"target="_blank">Location History</a> data with heatmaps. <i>Don't worry—all processing and visualization happens directly on your computer, so rest assured that nobody is able to access your Location History but you... and Google, of course.</i> ^.^</p>
<p>To start off, you'll need to go to <ahref="https://google.com/takeout"target="_blank">Google Takeout</a> to download your Location History data: on that page, deselect everything except Location History by clicking "Select none" and then reselecting "Location History". Then hit "Next" and, finally, click "Create archive". Once the archive has been created, click "Download". Unzip the downloaded file, and open the "Location History" folder within. <b>Then, drag and drop <i>LocationHistory.json</i> from inside that folder onto this page.</b> Let the visualization begin!</p>
<pclass="fallback">Alternatively, select your <b>LocationHistory.json</b> file directly: <inputname="file"type="file"id="file"></input></p>
<hr>
<p><i>Experimental (even faster!) import method:</i> Instead of going through Google Takeout, simply browse to the <ahref="https://maps.google.com/locationhistory/kml?startTime=0&endTime=9000000000000"target="_blank">Google Location History KML API endpoint</a>. A file (<b>history-12-31-1969.kml</b>) will be downloaded – just drag and drop it onto this page, and we're off! <i>Note:</i> This uses a non-public Google API and as such may cease to work at any point. Your mileage may vary.</p>
<pclass="credit">A project by <ahref="http://theopolis.me"target="_blank">@theopolisme</a>. Made in 2014 in Memphis, Tennessee.</p>
</div>
@@ -40,7 +41,7 @@
<divid="done"class="content-box hidden">
<h2>Render complete!</h2>
<p>Successfully processed <spanid="numberProcessed"></span> data points to generate the heatmap. Click inside this box to dismiss it and start exploring...</p>
<p><i>Zoom</i> by scrolling, double-clicking, or using the buttons in the upper lefthand corner. <i>Navigate</i> by clicking and dragging.</p>
<p><i>Zoom</i> by scrolling, double-clicking, or using the buttons in the upper lefthand corner. <i>Navigate</i> by clicking and dragging. Hover over the menu in the lower lefthand corner to customize the heatmap rendering.</p>
<pclass="credit">A project by <ahref="http://theopolis.me"target="_blank">@theopolisme</a>. Made in 2014 in Memphis, Tennessee.</p>
status(percentLoaded+'% of '+fileSize+' loaded...');
};
reader.onload=function (e){
varlocations;
varlatlngs;
status('Generating map...');
try{
locations=JSON.parse(e.target.result).locations;
if (!locations||locations.length===0){
thrownewReferenceError('No location data found.');
if (/.kml$/.test(file.name)){
latlngs=getLocationDataFromKml(e.target.result);
}else{
latlngs=getLocationDataFromJson(e.target.result);
}
}catch (ex){
status('Something went wrong generating your map. Ensure you\'re uploading a Google Takeout JSON file that contains location data and try again, or create an issue on GitHub if the problem persists. (error: '+ex.message+')');