将所有地图改为腾讯地图

This commit is contained in:
邹宗楠
2024-07-31 11:08:32 +08:00
parent 7d7abf2678
commit 8533b94f24
17 changed files with 1279 additions and 681 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
package autonavi
import (
/*import (
"fmt"
"net/http"
"strings"
@@ -120,3 +120,4 @@ func (a *API) GetCoordinateFromAddressByPageAll(address string, cityCode int) (g
}
return getCoordinateFromAddressByPageAllResult, err
}
*/

View File

@@ -1,5 +1,6 @@
package autonavi
/*
import (
"testing"
@@ -22,3 +23,4 @@ func TestGetCoordinateFromAddressByPageAll(t *testing.T) {
}
t.Log(utils.Format4Output(result, false))
}
*/

View File

@@ -1,14 +1,6 @@
package autonavi
import (
"testing"
"git.rosy.net.cn/baseapi"
"git.rosy.net.cn/baseapi/utils"
"go.uber.org/zap"
)
/*
var (
autonaviAPI *API
sugarLogger *zap.SugaredLogger
@@ -158,3 +150,4 @@ func TestAA(t *testing.T) {
}
t.Log(utils.Format4Output(result, false))
}
*/

View File

@@ -1,13 +1,7 @@
package autonavi
import (
"fmt"
"git.rosy.net.cn/baseapi/utils"
"strings"
)
// GetCyclingPlan 获取骑手的骑行计划
func (a *API) GetCyclingPlan(origin, destination string) ([]string, int64, int64, error) {
/*func (a *API) GetCyclingPlan(origin, destination string) ([]string, int64, int64, error) {
param := map[string]interface{}{
"key": a.key,
"origin": origin,
@@ -45,3 +39,4 @@ func (a *API) GetCyclingPlan(origin, destination string) ([]string, int64, int64
return polyLineList, distance, duration, nil
}
*/

View File

@@ -1,10 +1,6 @@
package autonavi
import (
"fmt"
"testing"
)
/*
func TestGetCyclingPlan(t *testing.T) {
key := "cb4ea3516f88c0fd8fed73f92aeddffa"
a := New(key)
@@ -19,3 +15,4 @@ func TestLng(t *testing.T) {
origin := fmt.Sprintf("%f,%f", 113.854912, 22.601450)
fmt.Println(origin)
}
*/