PHP Classes

distance class: Calculate the air distance between two cities

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 70%Total: 1,031 This week: 1All time: 3,561 This week: 404Up
Version License PHP version Categories
distance 1.0.0GNU General Publi...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: 72
All time rank: 5829 in Switzerland Switzerland
Week rank: 310 Up3 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:1,031
This week:1
All time:3,561
This week:404Up
 User Ratings  
 
 All time
Utility:100%StarStarStarStarStarStar
Consistency:100%StarStarStarStarStarStar
Documentation:-
Examples:100%StarStarStarStarStarStar
Tests:-
Videos:-
Overall:70%StarStarStarStar
Rank:382