|
Project-GC Lua Sandbox API
|
| DistanceVincenty | ( | $latitude1, | |
| $longitude1, | |||
| $latitude2, | |||
| $longitude2 ) |
Returns distance in meters.
Returns distance between two sets of coordinates according to the Vincenty formula. Vincenty is more accurate than Haversine 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) |