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)) }