1
This commit is contained in:
@@ -2,6 +2,7 @@ package cms
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"git.rosy.net.cn/jx-callback/globals"
|
||||||
"math"
|
"math"
|
||||||
"reflect"
|
"reflect"
|
||||||
"regexp"
|
"regexp"
|
||||||
@@ -726,6 +727,8 @@ func GetCyclingLine(sLng, sLat, uLng, uLat float64) (polyLineList []string, dist
|
|||||||
|
|
||||||
// 高德坐标转换成百度坐标
|
// 高德坐标转换成百度坐标
|
||||||
coords, err = api.BaiDuNaviAPI.BatchCoordinateConvert(coords, baidunavi.CoordSysGaoDe2Baidu)
|
coords, err = api.BaiDuNaviAPI.BatchCoordinateConvert(coords, baidunavi.CoordSysGaoDe2Baidu)
|
||||||
|
globals.SugarLogger.Debugf("========coords := %s", utils.Format4Output(coords, false))
|
||||||
|
globals.SugarLogger.Debugf("========coords :err= %v", err)
|
||||||
if err != nil || len(coords) <= model.NO {
|
if err != nil || len(coords) <= model.NO {
|
||||||
return nil, 0, 0, err
|
return nil, 0, 0, err
|
||||||
}
|
}
|
||||||
@@ -751,7 +754,10 @@ func GetCyclingLine(sLng, sLat, uLng, uLat float64) (polyLineList []string, dist
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
globals.SugarLogger.Debugf("========polyLine := %s", utils.Format4Output(polyLine, false))
|
||||||
polyLineList, err = baiDuCoord2Gaode(polyLine)
|
polyLineList, err = baiDuCoord2Gaode(polyLine)
|
||||||
|
globals.SugarLogger.Debugf("========polyLineList := %s", utils.Format4Output(coords, false))
|
||||||
|
globals.SugarLogger.Debugf("========polyLineList :err= %v", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user