PHP Classes

GeoNames PHP API: Search for geographic places using GeoNames API

Recommend this page to a friend!

  Detailed description   Download Download .zip .tar.gz  
This class can search for geographic places using GeoNames API.

It can send HTTP requests to the GeoNames API Web server to perform searches for geographic locations.

Currently, it can retrieve the:

- States of a given country

- Cities with a given name

The class can cache the query results to avoid calling the GeoNames API multiple times to query the same information.

Documentation

geo-name-search

Php Geoname search wrapper, to help reduce too much api call

Installation

Installation is super-easy via Composer:

composer require peterujah/geo-name-search

USAGES

First you have to create an account with geoname to acquire api username http://www.geonames.org/export/geonames-search.html

Initialize GeoNameSearch with geoname api username

$geo = new \Peterujah\NanoBlock\GeoNameSearch("username");

List all states in any country Nigeria

$geo->states("Nigeria");

List all cities in any sates Enugu

$geo->cities("Enugu");

Search geoname with query and country

$geo->query("Query", "Country");


  Author Author  
Picture of Ujah Chigozie peter
Name: Ujah Chigozie peter <contact>
Classes: 18 packages by
Country: Nigeria Nigeria
Age: 32
All time rank: 223910 in Nigeria Nigeria
Week rank: 78 Up4 in Nigeria Nigeria Up
Innovation award
Innovation award
Nominee: 8x

Details

geo-name-search

Php Geoname search wrapper, to help reduce too much api call

Installation

Installation is super-easy via Composer:

composer require peterujah/geo-name-search

USAGES

First you have to create an account with geoname to acquire api username http://www.geonames.org/export/geonames-search.html

Initialize GeoNameSearch with geoname api username

$geo = new \Peterujah\NanoBlock\GeoNameSearch("username");

List all states in any country Nigeria

$geo->states("Nigeria");

List all cities in any sates Enugu

$geo->cities("Enugu");

Search geoname with query and country

$geo->query("Query", "Country");

  Classes of Ujah Chigozie peter  >  GeoNames PHP API  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  
Name: GeoNames PHP API
Base name: geo-name-search
Description: Search for geographic places using GeoNames API
Version: -
PHP version: 5
License: GNU General Public License (GPL)
All time users: 72 users
All time rank: 10142
Week users: 1 user
Week rank: 152 Up
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Searching Search engines, crawling and indexing View top rated classes
Group folder image Web services Web data clipping, SOAP or XML-RPC clients and servers View top rated classes
Group folder image Geography Locations, mapping and demographics View top rated classes


  User ratings  
Not yet rated by the users

  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.

  Files folder image Files  
File Role Description
Files folder imagesrc (1 file)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  src  
File Role Description
  Plain text file GeoNameSearch.php Class Class source

Download Download all files: geo-name-search.tar.gz geo-name-search.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.
  Files folder image Files  
File Role Description
Files folder imagesrc (1 file)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  src  
File Role Description
  Plain text file GeoNameSearch.php Class Class source

Download Download all files: geo-name-search.tar.gz geo-name-search.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.