hpds_jkw_web/pkg/minedata/minedata_test.go

23 lines
423 B
Go
Raw Permalink Normal View History

2023-01-11 18:05:29 +08:00
package minedata
import (
"fmt"
"testing"
)
func TestMineDataService(t *testing.T) {
mine := NewMineData("f0bda738033e47ffbfbd5d3f865c19e1")
//正里程桩
res, err := mine.MilepostService("G60+K800+600")
if err != nil {
fmt.Println(err)
}
fmt.Println(ToString(res))
//逆里程桩
res1, err := mine.ReverseMilepost(119.736232, 29.785655)
if err != nil {
fmt.Println(err)
}
fmt.Println(ToString(res1))
}