From d7117665718638f1aed8aa4f3cf05c8c5a17f44a Mon Sep 17 00:00:00 2001 From: Riccardo Berto Date: Sun, 12 Sep 2021 14:20:41 +0200 Subject: [PATCH] comment on what resolve_geo_location really is --- init.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/init.sql b/init.sql index 22c2f54..df6f613 100644 --- a/init.sql +++ b/init.sql @@ -23,6 +23,7 @@ create index if not exists idx_training_data_t on training_data(t); create index if not exists idx_training_data_training_id on training_data(training_id); create index if not exists idx_training_data_geog on training_data using GIST(geog); +-- poor man's reverse geocoding create or replace function resolve_geo_location(geography) returns text as $$ begin case when st_dwithin($1, st_point(45.516114, 9.216108), 1000) then