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)


Top ↑

Return Return

(float)


Premium WordPress Apps

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.