D:/git/
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user