|
Project-GC Lua Sandbox API
|
| DistanceHaversine | ( | $latitude1, | |
| $longitude1, | |||
| $latitude2, | |||
| $longitude2 ) |
Returns distance in meters.
Returns distance between two sets of coordinates according to the Haversine formula. Haversine is less accurate than Vincenty over long distances.
Will return false if one of the input parameters is false. This could happen if the coordinates origin from data from a non-premium player.
| float | $latitude1 | (required) |
| float | $longitude1 | (required) |
| float | $latitude2 | (required) |
| float | $longitude2 | (required) |