PHP Classes
elePHPant
Icontem

PHP Geo Location: Get geographic details of a world location by name

Recommend this page to a friend!
  Info   View files Example   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2015-07-11 (3 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 259 This week: 2All time: 7,616 This week: 212Up
Version License PHP version Categories
geo-location 1.0.0GNU General Publi...5PHP 5, Web services, Geography
Description Author

This class can get geographic details of a world location by name.

It can send a request to the City Geo-Location Lookup API Mashape Web server to search for locations with a given name.

The class returns the details of one or more locations found with the given name in an array or JSON string like the location full name, zip code, longitude and latitude, time zone, etc..

  Performance   Level  
Name: Samuel Adeshina is available for providing paid consulting. Contact Samuel Adeshina .
Classes: 19 packages by
Country: Nigeria Nigeria
Age: 20
All time rank: 5992 in Nigeria Nigeria
Week rank: 43 Up1 in Nigeria Nigeria Up
Innovation award
Innovation award
Nominee: 7x

Winner: 1x

Details

PHP-Geo-Location

This PHP class/package can be used to get the complete geographical information about any place around the world. By providing a name of any location in the world, it returns the full geo-data of places that matches the location that was searched for. It returns details such as the full name of a place, the zip code, the longitude and latitude, the WMO Identifier and the Magic codes, the Time Zone, the standard time zones and so on. It can be very useful in applications or scenarios where other details about a users location needs to be automatically provided when the name of that location is provided.

Please go through the example.php file to fully understand how this class works.

  Files folder image Files  
File Role Description
Accessible without login Plain text file composer.json Data install's Unirest via composer
Accessible without login Plain text file config.ini Data configuration file
Accessible without login Plain text file example.php Example Explains how to use the GeoLocation class by instantiating one
Plain text file geolocation.class.php Class The main class file
Plain text file geolocation.interface.php Class provided in case a serious change is made to the class file
Accessible without login Plain text file LICENSE Lic. License File
Accessible without login Plain text file README.md Data ReadMe File

 Version Control Unique User Downloads Download Rankings  
 100%
Total:259
This week:2
All time:7,616
This week:212Up