Skip to content

Commit ebafa27

Browse files
committed
default to miles
1 parent 7d55694 commit ebafa27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Util.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ public static function truncate($string, $limit, $break = " ", $pad = "…"
472472
}
473473

474474
// calculate position distance (haversine formula) in miles
475-
public static function distance($origin, $dest, $radius = 6371) {
475+
public static function distance($origin, $dest, $radius = 3959) {
476476

477477
if (!(isset($origin[0]) && isset($origin[1]))) return false;
478478
if (!(isset($dest[0]) && isset($dest[1]))) return false;

0 commit comments

Comments
 (0)