From bcdfacc142bc94b00a43164144344f1526d3c4c4 Mon Sep 17 00:00:00 2001 From: Bel LaPointe <153096461+breel-render@users.noreply.github.com> Date: Sun, 15 Mar 2026 00:02:08 -0600 Subject: [PATCH] diamonds --- cmd/run.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/cmd/run.go b/cmd/run.go index 5174344..9549cf1 100644 --- a/cmd/run.go +++ b/cmd/run.go @@ -18,8 +18,8 @@ func Run(ctx context.Context) error { panic(err) } radius := *area / convertToMiles - radiusX := radius / 2 - radiusY := radius / 3 + radiusX := 2 * radius / 2 + radiusY := 2 * radius / 3 m, err := NewMapsOf(ctx, fs.Args()[0]) if err != nil { @@ -51,11 +51,11 @@ func Run(ctx context.Context) error { geoJsons[i].Geometry.Type = "Polygon" x, y := results[i].Lng, results[i].Lat geoJsons[i].Geometry.Coordinates = []any{[]any{ - [2]float64{x - radiusX, y + radiusY}, // top left - [2]float64{x + radiusX, y + radiusY}, // top righ - [2]float64{x + radiusX, y - radiusY}, // bot righ - [2]float64{x - radiusX, y - radiusY}, // bot left - [2]float64{x - radiusX, y + radiusY}, // top left + [2]float64{x, y + radiusY}, // top + [2]float64{x + radiusX, y}, // right + [2]float64{x, y - radiusY}, // bot + [2]float64{x - radiusX, y}, // left + [2]float64{x, y + radiusY}, // top }} } }