1
This commit is contained in:
@@ -26,16 +26,13 @@ func init() {
|
||||
}
|
||||
|
||||
func TestBatchCoordinateConvert(t *testing.T) {
|
||||
//result, err := api.BatchCoordinateConvert([]*Coordinate{
|
||||
result, err := api.BatchCoordinateConvert([]*Coordinate{
|
||||
&Coordinate{
|
||||
Lng: 104.057367,
|
||||
Lat: 30.694686,
|
||||
Lng: 104.00701626019786,
|
||||
Lat: 30.660569196450925,
|
||||
},
|
||||
&Coordinate{
|
||||
Lng: 104.057367,
|
||||
Lat: 30.694686,
|
||||
},
|
||||
}, CoordSysGCJ02, CoordSysBaiDu)
|
||||
}, "5")
|
||||
if err != nil {
|
||||
t.Fatalf("TestCoordinateConvert failed with error:%v", err)
|
||||
} else {
|
||||
@@ -59,6 +56,16 @@ func TestDirectionLiteRide(t *testing.T) {
|
||||
fmt.Println(result)
|
||||
|
||||
}
|
||||
func TestAC(t *testing.T) {
|
||||
fmt.Println(fmt.Sprintf("%.6f,%.6f", 104.00080006826988, 30.65440926211375))
|
||||
}
|
||||
|
||||
func TestBatchCoordinateConvertBai2Gao(t *testing.T) {
|
||||
aa := []string{"104.00703948726,30.66023262214", "104.00734814129,30.660267081943"}
|
||||
result, err := api.BatchCoordinateConvertBai2Gao(aa, "5")
|
||||
fmt.Println(err)
|
||||
fmt.Println(result)
|
||||
}
|
||||
|
||||
func TestName(t *testing.T) {
|
||||
syncStatus := 1
|
||||
|
||||
Reference in New Issue
Block a user