\MOD_geonames

Collection of methods related to geographical data.

An example for its use: $geo = MOD_geo::get(); // get the singleton instance $id = $geo->getCityID($cityname);

Summary

Methods
Properties
Constants
get()
getUpdate()
getAltnamesUpdate()
fetchFile()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
__construct()
updateGeonames()
updateAltnames()
$_instance
N/A

Properties

$_instance

$_instance : \MOD_geo

Singleton instance

Type

\MOD_geo

Methods

get()

get() : \PApps

singleton getter

Returns

\PApps

getUpdate()

getUpdate()

get updates from geonames

getAltnamesUpdate()

getAltnamesUpdate()

fetchFile()

fetchFile( $url)

Parameters

$url

__construct()

__construct()

updateGeonames()

updateGeonames( $date)

Parameters

$date

updateAltnames()

updateAltnames( $date)

Parameters

$date