17 lines
336 B
Go
17 lines
336 B
Go
package autonavi
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"git.rosy.net.cn/baseapi/utils"
|
|
)
|
|
|
|
func TestGetCoordinateFromAddressByPage(t *testing.T) {
|
|
lng, lat, err := autonaviAPI.GetCoordinateFromAddressByPage("兴月宏干杂", 510100)
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
t.Log(utils.Format4Output(lng, false))
|
|
t.Log(utils.Format4Output(lat, false))
|
|
}
|