Files
baseapi/platformapi/autonavi/autonavi_page_test.go
suyl 8ce4c93c5f aa
2021-06-18 15:06:16 +08:00

25 lines
679 B
Go

package autonavi
import (
"testing"
"git.rosy.net.cn/baseapi/utils"
)
func TestGetCoordinateFromAddressByPage(t *testing.T) {
lng, lat, err := autonaviAPI.GetCoordinateFromAddressByPage("四川成都市武侯区望江路街道南三环五段188密苏里小城62栋3单元501", 510100)
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("重庆市渝北区龙山大道111号“龙湖紫都城”", 500100)
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result, false))
}