+autonavi.BatchWalkingDistance

This commit is contained in:
gazebo
2019-10-18 12:02:14 +08:00
parent ef90a430ac
commit 629aa20fea
3 changed files with 162 additions and 6 deletions

View File

@@ -112,3 +112,40 @@ func TestGeoCodeRegeo(t *testing.T) {
}
t.Log(utils.Format4Output(result, false))
}
func TestBatchWalkingDistance(t *testing.T) {
result, err := autonaviAPI.BatchWalkingDistance(104.052756, 30.685203, []*Coordinate{
&Coordinate{
Lng: 104.052756,
Lat: 30.687203,
},
&Coordinate{
Lng: 104.032756,
Lat: 30.685203,
},
&Coordinate{
Lng: 104.032756,
Lat: 30.685203,
},
&Coordinate{
Lng: 104.032756,
Lat: 30.685203,
},
&Coordinate{
Lng: 104.032756,
Lat: 30.685203,
},
&Coordinate{
Lng: 104.032756,
Lat: 30.685203,
},
&Coordinate{
Lng: 104.032756,
Lat: 30.685203,
},
})
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result, false))
}