Exif\Location::gps PHP Метод

gps() защищенный Метод

Converts the gps coordinates
protected gps ( string $coord, string $hemi ) : float
$coord string
$hemi string
Результат float
    protected function gps($coord, $hemi)
    {
        $degrees = count($coord) > 0 ? $this->num($coord[0]) : 0;
        $minutes = count($coord) > 1 ? $this->num($coord[1]) : 0;
        $seconds = count($coord) > 2 ? $this->num($coord[2]) : 0;
        $hemi = strtoupper($hemi);
        $flip = $hemi == 'W' || $hemi == 'S' ? -1 : 1;
        return $flip * ($degrees + $minutes / 60 + $seconds / 3600);
    }