From 1d90b11aef8fb4b284316170c35b2ab131759b24 Mon Sep 17 00:00:00 2001 From: Franzz Date: Wed, 23 Apr 2025 11:06:43 +0200 Subject: [PATCH] Add function to rebuild GeoJSON --- inc/Spot.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/inc/Spot.php b/inc/Spot.php index 61b195a..540340d 100755 --- a/inc/Spot.php +++ b/inc/Spot.php @@ -744,6 +744,10 @@ class Spot extends Main )); } + public function buildGeoJSON($sCodeName) { + return Converter::convertToGeoJson($sCodeName); + } + public static function decToDms($dValue, $sType) { if($sType=='lat') $sDirection = ($dValue >= 0)?'N':'S'; //Latitude else $sDirection = ($dValue >= 0)?'E':'W'; //Longitude