PHP Class Exif\Location

Author: Bastian Allgeier ([email protected])
Exibir arquivo Open project: getkirby/toolkit

Protected Properties

Property Type Description
$lat latitude
$lng longitude

Public Methods

Method Description
__construct ( array $exif ) Constructor
__debuginfo ( ) : array Improved var_dump() output
__toString ( ) : string Echos the entire location as lat, lng
lat ( ) : float Returns the latitude
lng ( ) : float Returns the longitude
toArray ( ) : array Converts the object into a nicely readable array

Protected Methods

Method Description
gps ( string $coord, string $hemi ) : float Converts the gps coordinates
num ( string $part ) : float Converts coordinates to floats

Method Details

__construct() public method

Constructor
public __construct ( array $exif )
$exif array The entire exif array

__debuginfo() public method

Improved var_dump() output
public __debuginfo ( ) : array
return array

__toString() public method

Echos the entire location as lat, lng
public __toString ( ) : string
return string

gps() protected method

Converts the gps coordinates
protected gps ( string $coord, string $hemi ) : float
$coord string
$hemi string
return float

lat() public method

Returns the latitude
public lat ( ) : float
return float

lng() public method

Returns the longitude
public lng ( ) : float
return float

num() protected method

Converts coordinates to floats
protected num ( string $part ) : float
$part string
return float

toArray() public method

Converts the object into a nicely readable array
public toArray ( ) : array
return array

Property Details

$lat protected_oe property

latitude
protected $lat

$lng protected_oe property

longitude
protected $lng