camelCase

This commit is contained in:
Alex Roitman 2018-10-31 00:45:16 -07:00
parent 63b41691e6
commit d2c687d61e
1 changed files with 4 additions and 4 deletions

View File

@ -418,16 +418,16 @@ func (server *Server) nearestNeighbors(
if !match { if !match {
return true return true
} }
var dist, max_dist float64 var dist, maxDist float64
if s.distance { if s.distance {
dist = o.Distance(target) dist = o.Distance(target)
max_dist = target.Meters() maxDist = target.Meters()
} else { } else {
// don't need actual distances, use haversine as proxy for sorting // don't need actual distances, use haversine as proxy for sorting
dist = target.HaversineTo(o.Center()) dist = target.HaversineTo(o.Center())
max_dist = target.Haversine() maxDist = target.Haversine()
} }
if max_dist > 0 && dist > max_dist { if maxDist > 0 && dist > maxDist {
return false return false
} }
items = append(items, iterItem{id: id, o: o, fields: fields, dist: dist}) items = append(items, iterItem{id: id, o: o, fields: fields, dist: dist})