htdocs/lib2/logic/coordinate.class.php 1 location
|
@@ 76-80 (lines=5) @@
|
| 73 |
|
} |
| 74 |
|
$nLonDeg = floor($nLon); |
| 75 |
|
$nLonMin = ($nLon - $nLonDeg) * 60; |
| 76 |
|
if ($bLonE) { |
| 77 |
|
$sLon = 'E ' . sprintf('%03d', $nLonDeg) . '° ' . sprintf($minute_format, $nLonMin) . '\''; |
| 78 |
|
} else { |
| 79 |
|
$sLon = 'W ' . sprintf('%03d', $nLonDeg) . '° ' . sprintf($minute_format, $nLonMin) . '\''; |
| 80 |
|
} |
| 81 |
|
|
| 82 |
|
return [ |
| 83 |
|
'lat' => $sLat, |
htdocs_symfony/src/Repository/CoordinatesRepository.php 1 location
|
@@ 120-124 (lines=5) @@
|
| 117 |
|
} |
| 118 |
|
$nLonDeg = floor($nLon); |
| 119 |
|
$nLonMin = ($nLon - $nLonDeg) * 60; |
| 120 |
|
if ($bLonE) { |
| 121 |
|
$sLon = 'E' . sprintf('%03d', $nLonDeg) . '° ' . sprintf($minute_format, $nLonMin) . '\''; |
| 122 |
|
} else { |
| 123 |
|
$sLon = 'W' . sprintf('%03d', $nLonDeg) . '° ' . sprintf($minute_format, $nLonMin) . '\''; |
| 124 |
|
} |
| 125 |
|
|
| 126 |
|
return [ |
| 127 |
|
'lat' => $sLat, |