Index: includes/geolocation.inc.php =================================================================== --- includes/geolocation.inc.php (revision 6118) +++ includes/geolocation.inc.php (working copy) @@ -74,13 +74,10 @@ { foreach ($response->answer as $answer) { - if (is_numeric($answer->degree_latitude) && is_numeric($answer->degree_longitude)) + if (is_numeric($answer->latitude) && is_numeric($answer->longitude)) { - $ns_multiplier = ($answer->ns_hem == 'N' ? 1 : -1); - $ew_multiplier = ($answer->ew_hem == 'E' ? 1 : -1); - - $location['location_lat'] = round($answer->degree_latitude + $answer->min_latitude/60 + $answer->sec_latitude/3600,7) * $ns_multiplier; - $location['location_lon'] = round($answer->degree_longitude + $answer->min_longitude/60 + $answer->sec_longitude/3600,7) * $ew_multiplier; + $location['location_lat'] = $answer->latitude; + $location['location_lon'] = $answer->longitude; $reverse = TRUE; } }