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