PHP Classes

correction to haversine package

Recommend this page to a friend!

      PHP Calculate Distance  >  All threads  >  correction to haversine package  >  (Un) Subscribe thread alerts  
Subject:correction to haversine package
Summary:Haversine returns great-circle distance not straight-line
Messages:2
Author:william drescher
Date:2015-05-24 14:36:49
 

  1. correction to haversine package   Reply   Report abuse  
Picture of william drescher william drescher - 2015-05-24 14:36:49
The haversine formula calculates the great-circle distance between two points on the surface of a sphere, not the straight-line (ie: through the sphere) distance.
For anything useful the great-circle distance is what you want.

  2. Re: correction to haversine package   Reply   Report abuse  
Picture of Anthony Amolochitis Anthony Amolochitis - 2015-05-27 14:47:49 - In reply to message 1 from william drescher
I will reword. I use the word straight line due to the fact people in business never think about going through a sphere. They think point A to point B, but I believe your correction needs to be made in the description. Thank man.

Anthony