float calculateDistance(
mixed $aLon, mixed $aLat, mixed $bLon, mixed $bLat, [mixed $unit = KILOMETERS])
|
|
Given two sets of lat/lon pairs, calculate the distance between them
Distance defaults to being calculated in kilometers.
Parameters
mixed |
$aLon |
|
mixed |
$aLat |
|
mixed |
$bLon |
|
mixed |
$bLat |
|
mixed |
$unit |
|