+GeoCodeRegeo

This commit is contained in:
gazebo
2019-10-17 13:51:56 +08:00
parent ae275c8645
commit cf7fc8a4ba
2 changed files with 159 additions and 0 deletions

View File

@@ -93,3 +93,22 @@ func TestWalkingDistance(t *testing.T) {
distance := autonaviAPI.WalkingDistance(104.057289, 30.694798, 104.066289, 30.695598)
t.Logf("distance:%f", distance)
}
func TestGeoCodeRegeo(t *testing.T) {
lng := 104.052756
lat := 30.685203
result, err := autonaviAPI.GeoCodeRegeo([]*Coordinate{
&Coordinate{
Lng: lng,
Lat: lat,
},
&Coordinate{
Lng: lng,
Lat: lat,
},
}, 0, false, nil, 0, 0)
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result, false))
}