public function getGeoLocation()
	{
		if (!$this->checkPackageRequirements('exif'))
		{
			$this->setError(\Lang::txt('You need the PHP exif library installed to rotate image based on Exif Orientation value.'));
			return false;
		}

		try
		{
			$this->exif_data = exif_read_data($this->source);
		}
		catch (Exception $e)
		{
			$this->exif_data = array();
		}

		if (isset($this->exif_data['GPSLatitude']))
		{
			$lat      = $this->exif_data['GPSLatitude'];
			$lat_dir  = $this->exif_data['GPSLatitudeRef'];
			$long     = $this->exif_data['GPSLongitude'];
			$long_dir = $this->exif_data['GPSLongitudeRef'];

			$latitude  = $this->geo_single_fracs2dec($lat);
			$longitude = $this->geo_single_fracs2dec($long);
			$latitude_formatted  = $this->geo_pretty_fracs2dec($lat) . $lat_dir;
			$longitude_formatted = $this->geo_pretty_fracs2dec($long) . $long_dir;

			if ($lat_dir == 'S')
			{
				$latitude *= -1;
			}

			if ($long_dir == 'W')
			{
				$longitude *= -1;
			}

			$geo = array(
				'latitude'  => $latitude,
				'longitude' => $longitude,
				'latitude_formatted'  => $latitude_formatted,
				'longitude_formatted' => $longitude_formatted
			);
		}
		else
		{
			$geo = array();
		}

		return $geo;
	}
public function getGeoLocation()
	{
		if (!$this->checkPackageRequirements('exif'))
		{
			$this->setError(\Lang::txt('You need the PHP exif library installed to rotate image based on Exif Orientation value.'));
			return false;
		}

		try
		{
			$this->exif_data = exif_read_data($this->source);
		}
		catch (Exception $e)
		{
			$this->exif_data = array();
		}

		if (isset($this->exif_data['GPSLatitude']))
		{
			$lat      = $this->exif_data['GPSLatitude'];
			$lat_dir  = $this->exif_data['GPSLatitudeRef'];
			$long     = $this->exif_data['GPSLongitude'];
			$long_dir = $this->exif_data['GPSLongitudeRef'];

			$latitude  = $this->geo_single_fracs2dec($lat);
			$longitude = $this->geo_single_fracs2dec($long);
			$latitude_formatted  = $this->geo_pretty_fracs2dec($lat) . $lat_dir;
			$longitude_formatted = $this->geo_pretty_fracs2dec($long) . $long_dir;

			if ($lat_dir == 'S')
			{
				$latitude *= -1;
			}

			if ($long_dir == 'W')
			{
				$longitude *= -1;
			}

			$geo = array(
				'latitude'  => $latitude,
				'longitude' => $longitude,
				'latitude_formatted'  => $latitude_formatted,
				'longitude_formatted' => $longitude_formatted
			);
		}
		else
		{
			$geo = array();
		}

		return $geo;
	}
public function getGeoLocation ( ) { if ( ! $ this -> checkPackageRequirements ( 'exif' ) ) { $ this -> setError ( \ Lang :: txt ( 'You need the PHP exif library installed to rotate image based on Exif Orientation value.' ) ) ; return false ; } try { $ this -> exif_data = exif_read_data ( $ this -> source ) ; } catch ( Exception $ e ) { $ this -> exif_data = array ( ) ; } if ( isset ( $ this -> exif_data [ 'GPSLatitude' ] ) ) { $ lat = $ this -> exif_data [ 'GPSLatitude' ] ; $ lat_dir = $ this -> exif_data [ 'GPSLatitudeRef' ] ; $ long = $ this -> exif_data [ 'GPSLongitude' ] ; $ long_dir = $ this -> exif_data [ 'GPSLongitudeRef' ] ; $ latitude = $ this -> geo_single_fracs2dec ( $ lat ) ; $ longitude = $ this -> geo_single_fracs2dec ( $ long ) ; $ latitude_formatted = $ this -> geo_pretty_fracs2dec ( $ lat ) . $ lat_dir ; $ longitude_formatted = $ this -> geo_pretty_fracs2dec ( $ long ) . $ long_dir ; if ( $ lat_dir == 'S' ) { $ latitude *= - 1 ; } if ( $ long_dir == 'W' ) { $ longitude *= - 1 ; } $ geo = array ( 'latitude' => $ latitude , 'longitude' => $ longitude , 'latitude_formatted' => $ latitude_formatted , 'longitude_formatted' => $ longitude_formatted ) ; } else { $ geo = array ( ) ; } return $ geo ; }
Image Geo Location Data

@return  void
Image Geo Location Data