mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix bug
This commit is contained in:
@@ -32,6 +32,13 @@ public class CoordinateUtilTest {
|
||||
Assert.assertEquals(39.922698713521726D, coordinate.getLat(), 0);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void wgs84toBd09Test2(){
|
||||
final CoordinateUtil.Coordinate coordinate = CoordinateUtil.wgs84ToBd09(122.99395597, 44.99804071);
|
||||
Assert.assertEquals(123.00636516028885D, coordinate.getLng(), 0);
|
||||
Assert.assertEquals(45.00636909189589D, coordinate.getLat(), 0);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void bd09toWgs84Test(){
|
||||
final CoordinateUtil.Coordinate coordinate = CoordinateUtil.bd09toWgs84(116.404, 39.915);
|
||||
|
Reference in New Issue
Block a user