From 8fd7c0196db8bae1b607d17a6b6a7a33ef59e56e Mon Sep 17 00:00:00 2001 From: bel Date: Wed, 11 Mar 2026 18:14:09 -0600 Subject: [PATCH] smaller radius --- cmd/maps.go | 2 +- mise.toml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd/maps.go b/cmd/maps.go index 6b7a54c..8efb963 100644 --- a/cmd/maps.go +++ b/cmd/maps.go @@ -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:]...) diff --git a/mise.toml b/mise.toml index e658dd7..4e77e27 100644 --- a/mise.toml +++ b/mise.toml @@ -1,5 +1,6 @@ [env] GOOGLE_PLACES_API_KEY = "AIzaSyBkACm-LQkoSfsTO5_XAzBVZE9-JQzcNkg" +CATEGORIES = "schools,dump,prison,water treatment,police department,college,trailer park,coffee roaster,board game store,costco,organic grocery store" [tasks.default] run = "mise run olympia -- \"schools\"" @@ -7,5 +8,8 @@ run = "mise run olympia -- \"schools\"" [tasks.olympia] run = "mise run search -- \"olympia, wa\"" +[tasks.duvall] +run = "mise run search -- \"duvall, wa\"" + [tasks.search] run = "cd \"${MISE_PROJECT_ROOT}\"; go run ./ "