Add function to rebuild GeoJSON

This commit is contained in:
franzz committed 2025-04-23 11:06:43 +02:00
1 parent bc75cbc17d
commit 1d90b11aef
1 file changed
+4
+4
View File
@@ -744,6 +744,10 @@ class Spot extends Main
)); ));
} }
public function buildGeoJSON($sCodeName) {
return Converter::convertToGeoJson($sCodeName);
}
public static function decToDms($dValue, $sType) { public static function decToDms($dValue, $sType) {
if($sType=='lat') $sDirection = ($dValue >= 0)?'N':'S'; //Latitude if($sType=='lat') $sDirection = ($dValue >= 0)?'N':'S'; //Latitude
else $sDirection = ($dValue >= 0)?'E':'W'; //Longitude else $sDirection = ($dValue >= 0)?'E':'W'; //Longitude