File tree 2 files changed +2
-2
lines changed
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)
204
204
return false ;
205
205
}
206
206
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 );
208
208
}
209
209
}
210
210
}
Original file line number Diff line number Diff line change @@ -260,7 +260,7 @@ protected function extractGPSCoordinate($components)
260
260
$ components = array_map (array ($ this , 'normalizeComponent ' ), $ components );
261
261
262
262
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 );
264
264
}
265
265
266
266
return reset ($ components );
You can’t perform that action at this time.
0 commit comments