File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ protected function extractGPSCoordinates($coordinates)
204204 return false ;
205205 }
206206
207- return intval ($ matches [1 ]) + (intval ($ matches [2 ]) / 60 ) + (floatval ($ matches [3 ]) / 3600 );
207+ return floatval ($ matches [1 ]) + (floatval ($ matches [2 ]) / 60 ) + (floatval ($ matches [3 ]) / 3600 );
208208 }
209209 }
210210}
Original file line number Diff line number Diff line change @@ -260,7 +260,7 @@ protected function extractGPSCoordinate($components)
260260 $ components = array_map (array ($ this , 'normalizeComponent ' ), $ components );
261261
262262 if (count ($ components ) > 2 ) {
263- return intval ($ components [0 ]) + (intval ($ components [1 ]) / 60 ) + (floatval ($ components [2 ]) / 3600 );
263+ return floatval ($ components [0 ]) + (floatval ($ components [1 ]) / 60 ) + (floatval ($ components [2 ]) / 3600 );
264264 }
265265
266266 return reset ($ components );
You can’t perform that action at this time.
0 commit comments