Toggle navigation
Hot Examples
ES
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Buscar
Inicio
Location
Distance
Haversine
PHP Class Location\Distance\Haversine
See also:
http://en.wikipedia.org/wiki/Law_of_haversines
See link:
https://github.com/mjaschen/phpgeo
Author:
Marcus Jaschen (
[email protected]
)
Inheritance:
implements
Location\Distance\DistanceInterface
Mostrar archivo
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