From f9d0ce4233b29a8a90b9d87e18aacdeefde2e022 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Wed, 27 Nov 2019 06:04:32 -0800 Subject: [PATCH] Added datasette-haversine to plugins list --- docs/ecosystem.rst | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/ecosystem.rst b/docs/ecosystem.rst index cb6a3768..193c6c60 100644 --- a/docs/ecosystem.rst +++ b/docs/ecosystem.rst @@ -110,6 +110,15 @@ datasette-pretty-json `datasette-pretty-json `__ seeks out JSON values in Datasette's table browsing interface and pretty-prints them, making them easier to read. +datasette-haversine +------------------- + +`datasette-haversine `__ provides a SQL ``haversine()`` function which can calculate the haversine distance between two geographical points. You can then sort by this distance to find records closest to a specified location. + +:: + + select haversine(lat1, lon1, lat2, lon2, 'mi'); + datasette-sqlite-fts4 --------------------- @@ -123,4 +132,4 @@ datasette-bplist datasette-cors -------------- -`datasette-cors `__ allows you to configure `CORS headers `__ for your Datasette instance. You can use this to enable JavaScript running on a whitelisted set of domains to make ``fetch()`` calls to the JSON API provided by your Datasette instance. \ No newline at end of file +`datasette-cors `__ allows you to configure `CORS headers `__ for your Datasette instance. You can use this to enable JavaScript running on a whitelisted set of domains to make ``fetch()`` calls to the JSON API provided by your Datasette instance.