Tagged articles

tile indexing

1 articles · Page 1 of 1
Caiyun Tech Team
Caiyun Tech Team
Jan 6, 2023 · Backend Development

Optimizing Geospatial Queries: Finding the K Nearest Weather Stations in Go

The article walks through a real‑world case of locating the K closest national weather stations to a Beijing site, explains why naive full‑scan using Vincenty's formula is slow, and details a tile‑based indexing solution that cuts query time to 900‑3000 ns and reduces CPU usage by about 10 percent.

GoKNNPerformance Optimization
0 likes · 7 min read
Optimizing Geospatial Queries: Finding the K Nearest Weather Stations in Go