From db7059385296334c270c54aaed2027af1f94b21f 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 --- lib/Spot.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Spot.php b/lib/Spot.php index c59835d..11f68a8 100755 --- a/lib/Spot.php +++ b/lib/Spot.php @@ -774,6 +774,10 @@ class Spot extends Main return self::getJsonResult($bSuccess, $sDesc, $asResult); } + 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