This commit is contained in:
邹宗楠
2023-09-12 18:39:43 +08:00
parent 65b704f9c8
commit c1f2454722
3 changed files with 4 additions and 6 deletions

View File

@@ -733,6 +733,9 @@ func GetCyclingLine(sLng, sLat, uLng, uLat float64) (polyLineList []string, dist
if err != nil {
return nil, 0, 0, err
}
if data == "" {
return nil, 0, 0, fmt.Errorf("获取骑行规划路线错误")
}
path := &baidunavi.RiderPath{}
if err := json.Unmarshal([]byte(data.(string)), path); err != nil {
return nil, 0, 0, err