mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-14 01:33:03 +00:00
Fix dist calculation for address suggestions
This commit is contained in:
@@ -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]))];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user