PHP Class Location\Distance\Haversine

See also: http://en.wikipedia.org/wiki/Law_of_haversines
Author: Marcus Jaschen ([email protected])
Inheritance: implements Location\Distance\DistanceInterface
Mostra file Open project: mjaschen/phpgeo Class Usage Examples

Public Methods

Method Description
getDistance ( Coordinate $point1, Coordinate $point2 ) : float

Method Details

getDistance() public method

public getDistance ( Coordinate $point1, Coordinate $point2 ) : float
$point1 Location\Coordinate
$point2 Location\Coordinate
return float