Published
Edited
Jul 1, 2021
2 stars
Insert cell
Insert cell
Insert cell
mainRoads = (await fetch("https://overpass-api.de/api/interpreter", {
method: "POST",
body: `[out:json];

(
way[highway=motorway_link]({{bbox}});
way[highway=motorway]({{bbox}});
way[highway=trunk]({{bbox}});
way[highway=primary]({{bbox}});
way[name="London Circuit"]({{bbox}});

way[highway=secondary]({{bbox}});
way[highway=tertiary]({{bbox}});
way[highway=residential]({{bbox}});
way[highway=unclassified]({{bbox}});
);

out body;
>;
out skel qt;`.replaceAll("{{bbox}}", bbox)
})).json()
Insert cell
Insert cell
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