PHP Class Web\Geo

Inheritance: extends Prefab
Show file Open project: bcosca/fatfree-core Class Usage Examples

Public Methods

Method Description
location ( $ip = NULL ) : array | FALSE Return geolocation data based on specified/auto-detected IP address
tzinfo ( $zone ) : array Return information about specified Unix time zone
weather ( $latitude, $longitude, $key ) : array | FALSE Return weather data based on specified latitude/longitude

Method Details

location() public method

Return geolocation data based on specified/auto-detected IP address
public location ( $ip = NULL ) : array | FALSE
$ip string
return array | FALSE

tzinfo() public method

Return information about specified Unix time zone
public tzinfo ( $zone ) : array
$zone string
return array

weather() public method

Return weather data based on specified latitude/longitude
public weather ( $latitude, $longitude, $key ) : array | FALSE
$latitude float
$longitude float
$key string
return array | FALSE