PHP Classes

PHP GeoLocation Country: Get country coordinates using the country code

Recommend this page to a friend!
  Info   View files Example   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Last Updated Ratings Unique User Downloads Download Rankings
2021-10-16 (1 month ago) RSS 2.0 feedNot yet rated by the usersTotal: 127 This week: 4All time: 9,223 This week: 43Up
Version License PHP version Categories
code2latlon 1.0.0GNU General Publi...5PHP 5, Geography
Description Author

This class can get country coordinates using the country code.

It can take country code as parameters and returns the latitude and longitude coordinates of the country capital city obtained from a data file.

The class may also get the country coordinates using the country identifier number.

Innovation Award
PHP Programming Innovation award nominee
October 2021
Number 10
There is a particular type of application that needs to use the location of the capital city of each country.

This package can provide information about the capital cities of all countries of the world.

That information comes from a data file provided by this package, so it does not require an external Web service to provide that information.

Manuel Lemos
Picture of Dixan Santiesteban
  Performance   Level  
Name: Dixan Santiesteban <contact>
Classes: 1 package by
Country: Cuba Cuba
Age: 45
All time rank: 426413 in Cuba Cuba
Week rank: 54 Up1 in Cuba Cuba Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Plain text file code2latlon.class.php Class the class file
Accessible without login Plain text file latlon.dat Data data
Accessible without login Plain text file sample.php Example Example script

 Version Control Unique User Downloads Download Rankings  
 0%
Total:127
This week:4
All time:9,223
This week:43Up
For more information send a message to info at phpclasses dot org.