1
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"fmt"
|
||||
"git.rosy.net.cn/baseapi/platformapi/autonavi"
|
||||
"git.rosy.net.cn/baseapi/platformapi/baidunavi"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
"math"
|
||||
"reflect"
|
||||
"regexp"
|
||||
@@ -740,6 +741,8 @@ func GetCyclingLine(sLng, sLat, uLng, uLat float64) (polyLineList []string, dist
|
||||
if err := json.Unmarshal([]byte(data.(string)), path); err != nil {
|
||||
return nil, 0, 0, err
|
||||
}
|
||||
globals.SugarLogger.Debugf("===========data := %s", data)
|
||||
globals.SugarLogger.Debugf("===========path := %s", utils.Format4Output(path, false))
|
||||
distance = int64(path.Result.Routes[0].Distance) // 距离
|
||||
duration = int64(path.Result.Routes[0].Duration) // 时间
|
||||
|
||||
|
||||
Reference in New Issue
Block a user