21 Apr
2005
21 Apr
'05
4:10 a.m.
User: ankur Branch: HEAD Date: Thu, 21 Apr 2005 02:10:10 +0000 Modified files: /modules/location earth.inc Log message: Another file that was updated for the new, faster postal code database scheme. This commit simply changes the SQL generation function for calculating the distance of a lat/lon pair in a database table with the lat/lon submitted to this function, earth_distance_sql(). Previously, this function was assuming that the latitude and longitude in the DB table were in radian form. This commit changes is so it calls the SQL RADIAN() function to convert degrees to radians within a query. Links: http://cvs.drupal.org/diff.php?path=contributions/modules/location/earth.inc...