$_instance
$_instance : \MOD_geo
Singleton instance
Collection of methods related to geographical data.
An example for its use: $geo = MOD_geo::get(); // get the singleton instance $id = $geo->getCityID($cityname);
$_instance : \MOD_geo
Singleton instance
getCityID(string $placeName, boolean $allowAmbigious) : integer|boolean
Get Geonames ID for a place name.
string | $placeName | Name of place (case-sensitive) |
boolean | $allowAmbigious | Set true if more than one place is
|
Geonames ID of a place in database, false if
none found