Published
Edited
Jun 17, 2019
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
callDB('SELECT name, "X", "Y", point FROM health LIMIT 1')
Insert cell
Insert cell
callDB('SELECT ST_AsText(point) FROM health LIMIT 3')
Insert cell
Insert cell
response = callDB('SELECT ST_AsGeoJSON(point) FROM health LIMIT 1')
Insert cell
JSON.parse(response["st_asgeojson"])
Insert cell
md`We can return GeoJSON geodata and other columns at the same time`
Insert cell
callDB('SELECT name, ST_AsGeoJSON(point) AS point FROM health LIMIT 3')
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