PHP Classes

Geo Tools: Perform calculations with geographic coordinates

Recommend this page to a friend!
  Info   View files View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 1,026 All time: 3,575 This week: 131Up
Version License PHP version Categories
geo-tools 1.0BSD License5PHP 5, Geography


This class can perform several types of calculations with geographic coordinates.

It can take the longitude and latitude of two points in the Earth globe and perform calculations like the surface distance between those two points using the Havesine formula, the initial bearing angle.

The class can also mirror a bearing angle over the x or the y axis, or calculate of coordinates of a location that is at the distance of another location with a given bearing angle.

Innovation Award
PHP Programming Innovation award winner
September 2011
Geographic coordinates are very useful to determine the proximity of a set of different locations.

There are many solutions to determine the distance between two geographic locations from their coordinates.

The class goes further and implements other types of calculations that include for instance the bearing angle of lines that connect different locations.

Manuel Lemos
Picture of Menno Bieringa
Name: Menno Bieringa <contact>
Classes: 1 package by
Country: ???
Age: 45
All time rank: 2333
Week rank: 332 Up
Innovation award
Innovation award
Nominee: 1x

Winner: 1x

  Files folder image Files  
File Role Description
Plain text file class.GeoTools.php Class Main class

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:3,575
This week:131Up
User Comments (1)
10 years ago (Carlos Alberto)