Login   Register  
PHP Classes

distance class: Calculate the air distance between two cities

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2009-07-11 (5 years ago) RSS 2.0 feedStarStarStarStar 70%Total: 970 This week: 2All time: 3,447 This week: 990Up
Version License PHP version Categories  
distance 1.0GNU General Public Lice...5.0PHP 5, Web services, Geography
Description Author  

This class can be used to calculate the air distance between two cities.

It calls the Google Maps API to obtain the latitude and longitude of the cities given their names.

The class uses the retrieved locations to compute the air distance between the cities in either kilometers, miles or sea miles.

Picture of Thomas Jakober
Name: Thomas Jakober <contact>
Classes: 3 packages by
Country: Switzerland Switzerland
Age: 64
All time rank: 5919 in Switzerland Switzerland
Week rank: 174 Up2 in Switzerland Switzerland Up

  Files folder image Files  
File Role Description
Plain text file distance.class.php Class Base Class File
Accessible without login Plain text file testdist.php Example Example file

 Version Control Unique User Downloads Download Rankings  
 0%Total:970All time:3,447
 This week:2This week:990Up
 User Ratings  
 All time