smaller radius

This commit is contained in:
bel
2026-03-11 18:14:09 -06:00
parent 55a78add6f
commit 8fd7c0196d
2 changed files with 5 additions and 1 deletions

View File

@@ -57,7 +57,7 @@ func (m *Maps) Search(ctx context.Context, query string) ([]Location, error) {
a := m.around.Lat - results[i].Lat
b := m.around.Lng - results[i].Lng
dist := math.Sqrt(a*a + b*b)
shouldKeep = dist*convertToMiles < 30.0
shouldKeep = dist*convertToMiles < 20.0
}
if !shouldKeep {
results = append(results[:i], results[i+1:]...)