+autonavi.BatchWalkingDistance
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user