diff --git a/RX.php b/RX.php index 077697b..4d0edbe 100644 --- a/RX.php +++ b/RX.php @@ -31,7 +31,7 @@ include_once 'classes/geocode.php'; $result = $db->query('SELECT rowid,* FROM pharmacies'); foreach ($result as $row) { - $distance = $geo->straight_line_distance($Lat, $Lon, $row['Latitude'], $row['Longitude'], 'N'); + $distance = $geo->straight_line_distance($Lat, $Lon, $row['Latitude'], $row['Longitude']); if ($distance < $shortest) { $pharmacy = $row['Pharmacy'];