Unlisted
Edited
Nov 3, 2023
Importers
2 stars
Insert cell
Insert cell
Insert cell
Promise.allSettled(cities.map((city) => nominatim(city))).then((cities) =>
cities
.slice(0) // comment out, this fails anyway
.filter((x) => x?.value)
.map((x) => x.value[0])
.map((d) => ({
type: "Feature",
properties: { name: d.name },
geometry: { type: "Point", coordinates: [Number(d.lon), Number(d.lat)] }
}))
)
Insert cell
Insert cell
Insert cell
Insert cell
world = fetch("https://unpkg.com/visionscarto-world-atlas@0.1.0/world/110m.json").then(
(d) => d.json()
)
Insert cell
Insert cell
Insert cell
Insert cell
font = "Inter"
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