Add function to rebuild GeoJSON

This commit is contained in:
2025-04-23 11:06:43 +02:00
parent bc75cbc17d
commit 1d90b11aef

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