Public
Edited
Mar 30, 2021
Importers
2 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// run the query on the fly by uncommenting following code. It takes long to run....
/*
data_example_area_alpine_huts_with_operator = {
const q = `
[out:json][timeout:60];
nwr(46.55,9.21,47.96,13.55)[~"operator.*"~"."][tourism="alpine_hut"];
out body center qt;
>;
out skel qt;`;
let resp = await fetch(`https://lz4.overpass-api.de/api/interpreter?data=${q}`);
return resp.json();
}
*/
Insert cell
// Or, load the saved query result
data_example_area_alpine_huts_with_operator = await FileAttachment(
"data_example_area_alpine_huts_with_operator.json"
).json()
Insert cell
Insert cell
// run the query on the fly by uncommenting following code. It takes long to run....
/*
data_alps_alpine_huts_with_operator = {
const q = `
[out:json][timeout:60];
area(3602698607)->.Alps;
nwr(area.Alps)[~"operator.*"~"."]["tourism"="alpine_hut"];
out body center qt;
>;
out skel qt;`;
let resp = await fetch(`https://lz4.overpass-api.de/api/interpreter?data=${q}`);
return resp.json();
}
*/
Insert cell
// Or, load the saved query result
data_alps_alpine_huts_with_operator = await FileAttachment(
"data_alps_alpine_huts_with_operator.json"
).json()
Insert cell
Insert cell
// run the query on the fly by uncommenting following code. It takes long to run....
/*
data_alps_alpine_huts = {
const q = `
[out:json][timeout:60];
area(3602698607)->.Alps;
nwr(area.Alps)["tourism"="alpine_hut"];
out body center qt;
>;
out skel qt;`;
let resp = await fetch(`https://lz4.overpass-api.de/api/interpreter?data=${q}`);
return resp.json();
}
*/
Insert cell
// Or, load the saved query result
data_alps_alpine_huts = await FileAttachment(
"data_alps_alpine_huts.json"
).json()
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// run the query on the fly by uncommenting following code.
// It takes long to run and the result is large....
/*
data_alps_public_transport = {
const q = `
[out:json][timeout:600];
area(3602698607)->.Alps;
(
node(area.Alps)["public_transport"="platform"];
node(area.Alps)["railway"="platform"];
node(area.Alps)["railway"="station"];
node(area.Alps)["railway"="halt"];
node(area.Alps)["highway"="bus_stop"];
node(area.Alps)["highway"="platform"];
node(area.Alps)["amenity"="ferry_terminal"];
node(area.Alps)["aerialway"="station"];
);
out body center qt;
>;
out skel qt;`;

let resp = await fetch(query_endpoint + q);
return resp.json();
}
*/
Insert cell
// Or, load the saved query result
data_alps_public_transport = {
let archive = await FileAttachment("data_alps_public_transport.json@1.zip")
.arrayBuffer()
.then(buffer => jszip.loadAsync(buffer));
return archive
.file("data_alps_public_transport.json")
.async("text")
.then(
function success(json) {
return JSON.parse(json);
},
function error(e) {
console.warn(e);
}
);
}
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

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