PHP Classes

PHP Distance Between Coordinates Flying between Two Points: Calculate the distance between two Earth locations

Recommend this page to a friend!
  Info   View files Example   Screenshots Screenshots   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 86 This week: 1All time: 9,987 This week: 560Up
Version License PHP version Categories
get-flying-distance- 1.0GNU General Publi...5PHP 5, Geography
Description 

Author

This class can calculate the distance between two Earth locations.

It takes as parameters the names and the latitude and longitude of two locations on the planet.

The class computes and displays the distance in kilometers between the two locations that a plane would have to traverse flying over the air.

Picture of Hassane Moussa
  Performance   Level  
Name: Hassane Moussa <contact>
Classes: 10 packages by
Country: Niger Niger
Age: 40
All time rank: 21481 in Niger Niger
Week rank: 109 Up1 in Niger Niger Equal
Innovation award
Innovation award
Nominee: 2x

Winner: 1x

Example

<?php

require_once 'FlyingDistanceWithGpsCoord.php';

// flying distance (Km) between Niamey/Africa (lat:13.5137/long:2.1098) and Paris/France (lat:48.856697/long:2.351462)

echo FlyingDistanceWithGpsCoord :: distancekilometer("Niamey","13.5137","2.1098","Paris","48.856697","2.351462");

echo
"<br/><br/>";

echo
FlyingDistanceWithGpsCoord :: distancekilometer("Niamey","13,5137","2,1098","New York","40,712728","-74,006015");

?>


Screenshots  
  • Screenshot
  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example Example script
Plain text file FlyingDistanceWithGpsCoord.php Class Class source
Accessible without login Plain text file LICENSE Lic. License text

 Version Control Unique User Downloads Download Rankings  
 75%
Total:86
This week:1
All time:9,987
This week:560Up