From 4d5560bbbcdaf8e191c7a9fc1bc545ef0f669cca Mon Sep 17 00:00:00 2001 From: Ansis Brammanis Date: Fri, 22 Feb 2013 16:08:12 -0500 Subject: [PATCH] Fix dist calculation for address suggestions --- js/id/geo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/id/geo.js b/js/id/geo.js index f0c30d4a3..0b91c1ac4 100644 --- a/js/id/geo.js +++ b/js/id/geo.js @@ -87,5 +87,5 @@ iD.geo.pathLength = function(path) { }; iD.geo.metresToCoordinates = function(loc, vector) { - return [vector[1] / 111200, vector[0] / 111200 / Math.cos(loc[1])]; + return [vector[1] / 111200, vector[0] / 111200 / Math.abs(Math.cos(loc[1]))]; };