Skip to content

Commit

Permalink
Merge pull request #95 from tobinam/patch-2
Browse files Browse the repository at this point in the history
Fixed small bug in com.geodesk.core.Box#metersAroundLonLat
  • Loading branch information
clarisma committed Feb 12, 2024
2 parents d67e9c0 + ef568ce commit 68222ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/geodesk/core/Box.java
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ public static Box impsAroundXY(int d, int x, int y)
*/
public static Box metersAroundLonLat(double meters, double lon, double lat)
{
return metersAroundXY(meters, (int)Mercator.xFromLon(lon), (int)Mercator.yFromLat(lon));
return metersAroundXY(meters, (int)Mercator.xFromLon(lon), (int)Mercator.yFromLat(lat));
}

/**
Expand Down Expand Up @@ -559,4 +559,4 @@ public Geometry toGeometry(GeometryFactory factory)
coords[9] = minY;
return factory.createPolygon(new WayCoordinateSequence(coords));
}
}
}

0 comments on commit 68222ef

Please sign in to comment.