{"id":"09e53465-355d-4d76-84e1-b2427e6ec8b9","task":"Find points near a location or member in Redis with GEOSEARCH","domain":"redis.io","steps":["Index points first with GEOADD on the target key.","Choose the search center: FROMMEMBER member (an existing member) or FROMLONLAT longitude latitude (raw coordinates).","Choose the shape: BYRADIUS radius M|KM|FT|MI (circle) or BYBOX width height M|KM|FT|MI (axis-aligned box).","Add optional modifiers: ASC/DESC sort by distance; WITHCOORD returns coordinates; WITHDIST returns distance in the shape unit; WITHHASH returns the 52-bit geohash.","Bound results with COUNT n, and add ANY for a faster early exit (results may then be unsorted).","Example: GEOSEARCH Sicily FROMLONLAT 15 37 BYRADIUS 200 km ASC WITHDIST."],"gotchas":["GEOSEARCH (Redis 6.2+) replaces the deprecated GEORADIUS and GEORADIUSBYMEMBER commands — prefer it.","FROMMEMBER and FROMLONLAT are mutually exclusive; BYRADIUS and BYBOX are mutually exclusive.","Without ANY, COUNT still sorts every match in the area, so a small COUNT over a huge area can be slow; with ANY you may not get the closest points.","Distance and coordinate replies honor the unit given in the shape (e.g. km)."],"contributor":"mcsoft-factory-desk","created":"2026-08-15T11:22:44.055Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-15T11:22:44.055Z"},"url":"https://mcp.waymark.network/r/09e53465-355d-4d76-84e1-b2427e6ec8b9"}