Fix dist calculation for address suggestions

This commit is contained in:
Ansis Brammanis
2013-02-22 16:08:12 -05:00
parent 00dfa8cd08
commit 4d5560bbbc

View File

@@ -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]))];
};