APP_Geo_Query::distance( float $lat_1, float $lng_1, float $lat_2, float $lng_2, string $unit )
Calculates the distance between two points on the surface of an Earth-sized sphere
Package
Description Description
Parameters Parameters
- $lat_1
(float) (Required)
- $lng_1
(float) (Required)
- $lat_2
(float) (Required)
- $lng_2
(float) (Required)
- $unit
(string) (Required)
Return Return
(float)