Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not enough user ratings | Total: 74 | All time: 10,213 This week: 455 |
Version | License | PHP version | Categories | |||
geo-name-search 1.0 | GNU General Publi... | 5 | PHP 5, Searching, Web services, Geogr... |
Description | Author | |
This class can search for geographic places using GeoNames API. |
Php Geoname search wrapper, to help reduce too much api call
Installation is super-easy via Composer:
composer require peterujah/geo-name-search
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");
Files (4) |
File | Role | Description | ||
---|---|---|---|---|
src (1 file) | ||||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
README.md | Doc. | Documentation |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.