PHP Classes

distance class: Calculate the air distance between two cities

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 63%Total: 1,032 All time: 3,566 This week: 455Up
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: 74
All time rank: 5829 in Switzerland Switzerland
Week rank: 195 Up4 in Switzerland Switzerland Up

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

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 Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,032
This week:0
All time:3,566
This week:455Up
 User Ratings  
 
 All time
Utility:90%StarStarStarStarStar
Consistency:90%StarStarStarStarStar
Documentation:-
Examples:90%StarStarStarStarStar
Tests:-
Videos:-
Overall:63%StarStarStarStar
Rank:862