diff --git a/platformapi/autonavi/autonavi_page.go b/platformapi/autonavi/autonavi_page.go index 8e703b43..ef0f92e6 100644 --- a/platformapi/autonavi/autonavi_page.go +++ b/platformapi/autonavi/autonavi_page.go @@ -86,7 +86,7 @@ type GetCoordinateFromAddressByPageAllResult struct { Shopid []interface{} `json:"shopid"` Shopinfo string `json:"shopinfo"` Poiweight []interface{} `json:"poiweight"` - Distance []interface{} `json:"distance"` + Distance string `json:"distance"` Photos []interface{} `json:"photos"` } diff --git a/platformapi/autonavi/autonavi_page_test.go b/platformapi/autonavi/autonavi_page_test.go index e2c93f31..5687944d 100644 --- a/platformapi/autonavi/autonavi_page_test.go +++ b/platformapi/autonavi/autonavi_page_test.go @@ -16,7 +16,7 @@ func TestGetCoordinateFromAddressByPage(t *testing.T) { } func TestGetCoordinateFromAddressByPageAll(t *testing.T) { - result, err := autonaviAPI.GetCoordinateFromAddressByPageAll("重庆市南岸区南坪正街1号", 500100) + result, err := autonaviAPI.GetCoordinateFromAddressByPageAll("重庆市渝北区龙山大道111号“龙湖紫都城”", 500100) if err != nil { t.Fatal(err) }