Published
Edited
Dec 23, 2019
3 stars
Insert cell
Insert cell
// This is an example route from the apple health data export.
route = FileAttachment("route_2019-12-06_3.46pm.gpx")
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
parsedXML = new DOMParser().parseFromString(
await route.text(),
"application/xml"
)
Insert cell
// Thank you to https://observablehq.com/@observablehq/module-require-debugger
// for figuring that out.
toGeoJSON = require('@rustyconover/togeojson')
Insert cell
d3 = require("d3-geo@1")
Insert cell
L = require('leaflet@1.2.0')
Insert cell
html`<link href='${resolve(
'leaflet@1.2.0/dist/leaflet.css'
)}' rel='stylesheet' />`
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more