Square on the ground
Each country has its own metric projection, so cells are close to square in metres on the ground. Web Mercator tiles change ground size with latitude.
Source: comparison.md, section 9GeoSquare V2 turns points, polygons and tables into metre-sized cells with stable IDs. Each country uses its own projection.
Cells are 50 m per side at level 12 and 5 m at level 14. Source: cellSideM in the engine build, and the geosquare-v2 README.
Loading the map and the engine.
Install the Python package from PyPI and run this. The output below is from geosquare-engine 0.3.0 on Python 3.14.
Install geosquare-engine from PyPI. It needs Python 3.11 to 3.14.
Encode a level 12 cell, then ask for its side length and its neighbours.
A level 12 cell is 50 m wide and has 8 neighbours.
pip install geosquare-engineimport geosquare_engine as gs
gid = gs.encode(12, 475168, 491792)
print("GID:", gid)
print("Cell side (m):", gs.cell_side_m(12))
print("Neighbours:", len(gs.k_ring(gid, 1)))GID: H2X545M5X4E2
Cell side (m): 50.0
Neighbours: 8Each point below links to the document that backs it.
Each country has its own metric projection, so cells are close to square in metres on the ground. Web Mercator tiles change ground size with latitude.
Source: comparison.md, section 9Data written with profile 1.0.0 still loads. Nine of 11 domains keep the same GIDs. For some VN and LA points the GID changed, and the reader warns you. Do not join old and new VN or LA data.
Source: profile-compatibility.mdEach column gets its own rule: sum, weighted mean, median, max or min. Empty values are skipped, not counted as 0.
Source: data-and-aggregation.mdBad coordinates and bad IDs raise an error. Values are not rounded or cut without notice.
Source: geosquare-engine README, Why use itgeosquare-engine runs the same Rust core in Python, the browser (WebAssembly) and DuckDB. The grid rules are not copied into each language. geosquare-v2 holds the spec and profiles.
Source: bindings/wasm/README.mdEach profile names its datum and projection. The loader checks a signature before it computes any cell.
Source: country-profiles.mdThe code is Apache-2.0. Boundary files keep their own licences, such as ODbL 1.0 or CC BY 4.0. Read them before you reuse data.
Source: data-licenses.mdReleased domains: BN, ID, LA, MY, PH and SG. Candidate domains: KH, MM, TH, TL and VN. Candidate domains need an explicit opt-in flag and may change.
GeoSquare is a national grid for ASEAN countries. Other systems are built for global work. Each has trade-offs.
| Topic | GeoSquare V2 | H3 | S2 | Geohash | Admin boundaries |
|---|---|---|---|---|---|
| Cell shape | Square in metres, per country projection | Hexagons, with 12 pentagon base cells | Quadrilaterals on a global grid | Rectangles, about 2:1 sides at the tested precision | Irregular polygons |
| Coverage | 11 ASEAN domains. 6 released, 5 candidate. | Global | Global | Global | One country at a time |
| Strong at | Metric analysis per country, stable IDs, explicit rules | Neighbourhood analysis and a large tool ecosystem | Global indexing with a quadrilateral layout | Simple prefix lookup | Official reports and statistics |
| Main limit | Not global. Candidate profiles are provisional. | Not square. No country-specific metric CRS. | Cell area and side vary more. | Rectangles, not metre squares. | Shape and size follow the boundary, not a fixed grid. |
Use GeoSquare as the national identity. Add H3, S2 or geohash indexes only when a query needs them. See recommended use.
The spec comes first. The engine computes. The platform serves data over an API.
Spec, country profiles, Python package and docs. Sets the rules.
Rust core with Python, WebAssembly, DuckDB and gsq bindings.
Server API. Takes CSV, checks rows, stores cell datasets, answers queries and exports.
The platform docs are in Bahasa Indonesia. The platform is a server app, not a library.
Python packages are on PyPI. Other parts build from the repos. Status is checked on the day this page was built.
python -m pip install "geosquare-v2[registry]"The quick start needs a git clone of the repo for the trust file and registry files.
pip install geosquare-engineNeeds Python 3.11 to 3.14.
bindings/wasm with npm run build.bindings/duckdb with build.sh.gsq command-line tool. Install it from the engine repo.uv sync and uv run uvicorn. See its README.Read the docs, try the engine in your browser, or open an issue on the repo that holds the problem.