Files
baseapi/platformapi/autonavi/autonavi_page_test.go
suyl 6f5644325d aa
2021-08-02 11:13:10 +08:00

25 lines
605 B
Go

package autonavi
import (
"testing"
"git.rosy.net.cn/baseapi/utils"
)
func TestGetCoordinateFromAddressByPage(t *testing.T) {
lng, lat, err := autonaviAPI.GetCoordinateFromAddressByPage("西航港街道珠江路600号2栋108号", 0)
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(lng, false))
t.Log(utils.Format4Output(lat, false))
}
func TestGetCoordinateFromAddressByPageAll(t *testing.T) {
result, err := autonaviAPI.GetCoordinateFromAddressByPageAll("西航港街道珠江路600号2栋108号", 0)
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result, false))
}