Skip to content

Stay curious. Build better.

Appearance

Choose how BestHub looks on this device.

Changes apply immediately.

Search articles

Open Discover with these filters

Suggested searches

Latest articles

17 min read

Using Java Topology Suite (JTS) for Spatial Geometry Operations and Fast Point‑in‑Polygon Checks

This article introduces the Java Topology Suite (JTS), explains its core geometry models, WKT format, spatial relations, and operations, and demonstrates how to efficiently determine whether a point lies within service coverage polygons using MBR filtering, spatial indexes such as R‑tree and Quadtree, and geometry repair techniques.

10 min read

How Caiyun Weather Optimized Administrative Division Lookups Using H3 Indexing

The article chronicles Caiyun Weather’s evolution of geographic lookup—from a naïve nearest‑adcode algorithm to a high‑precision H3‑based system—detailing the evaluation of Geohash, S2, and H3, performance benchmarks, memory trade‑offs, and the final R‑Tree‑augmented point‑in‑polygon solution.

14 min read

How GeoHash Powers Billion‑Scale Point‑in‑Polygon Matching at Alibaba Xianyu

This article explains how Alibaba Xianyu uses GeoHash encoding and optimized spatial indexing to efficiently match billions of user‑posted GPS points with tens of thousands of market‑area polygons, reducing computation from quadrillions to billions of operations through precise point‑polygon algorithms and fast neighbor lookups.

13 min read

How Xianyu Scales Billion‑Item Geo Matching with Fast GeoHash Algorithms

This article explains how Xianyu uses GeoHash‑based spatial indexing, precise and approximate matching, and a rapid neighbor‑search algorithm to efficiently associate billions of GPS‑tagged items with tens of thousands of city‑level business districts, reducing computation from quadrillions to billions of operations.

8 min read

Efficient Point‑in‑Polygon Determination for Geo‑fencing Using Ray Casting and R‑Tree Indexing

The article explains how geo‑fencing relies on fast point‑in‑polygon checks, compares the basic ray‑casting method with brute‑force performance, and shows how spatial R‑tree indexing—both on polygon bounding boxes and on individual edges—dramatically speeds up queries even for millions of complex polygons.