Playground

Try the engine in your browser

Three demos run the same Rust core as the Python package, compiled to WebAssembly. The cell maths runs in your browser and nothing you enter is sent to a server. The basemap comes from GeoSquare, with Overture Maps and OpenStreetMap data.

Engine build: geosquare-engine main @ df1c381 · WebAssembly crate 0.1.0, built locally for this site.

// 01Click the map

Find the cell under a point

Click the map, or type coordinates. The cell is drawn. Use the buttons to move up to the parent, down to the children, or to the eight neighbours.

Map · domain ID · click to set a point

Loading the map and the engine.

Level 12 cells are 50 m wide. Level 14 cells are 5 m wide. Level 0 is left out, because the engine returns an empty GID for it.

Current GID
…
GID at each level
LevelSideGID

CallspointToCellcellPolygonWgs84parentchildrenkRingdecodecellSideM

// 02Zoom rollup

Zoom out, and cells merge

The demo makes 4,000 random points around Jakarta, using a fixed seed. Points are rolled up to the cell level for the map zoom. Pick how the values are combined.

Map · 4,000 synthetic points · Jakarta

Loading the engine and building points.

Value range
––

Zoom 14 and up uses level 12. Zoom 11 to 13 uses level 10. Zoom 10 and below uses level 8. Use the map buttons to change the zoom.

The points are synthetic. They are not population data.

CallslevelForZoomcellPolygonsrollupToLevelcellSideM

// 03CSV ID checker

Check a column of GIDs

Paste a CSV, load a file, or drop one into the box. The checker reads the gid column, or the first column. It flags invalid GIDs, empty cells, duplicates and mixed levels.

This is a browser check. It is not the gsq check command in the Python tool.

Drop a .csv file here, or use the file picker.

Pasted text is read in the browser only. Nothing is uploaded.

Summary

Loading the engine.

CallsdecodedetectTable