This commit is contained in:
苏尹岚
2020-12-03 11:46:22 +08:00
parent 57812bf484
commit 069c104d09

View File

@@ -476,16 +476,6 @@ func GetStationInfoList(db *DaoDB, stationName string, cityCode int, lat, lng fl
TotalCount: GetLastTotalRowCount(db),
Data: stations,
}
// for _, v := range stations {
// var distance float64
// if v.Longitude != 0 && v.Latitude != 0 {
// distance = jxutils.EarthDistance(lng, lat, v.Longitude, v.Latitude)
// } else {
// distance = 0
// }
// v.Distance = distance
// }
// pagedInfo.Data = stations
}
return pagedInfo, err
}