Geogrid
Library for creating hex grid over the Earth
Install / Use
/learn @cortwave/GeogridREADME
geogrid
Library for creating hex grid on sphere
Setup
Gradle (Jitpack dependency)
repositories {
...
maven { url "https://jitpack.io" }
}
compile 'com.github.cortwave:geogrid:0.1.0'
Quick start
int detalizationLevel = 12;
Grid<Hex> grid = new HexGrid(detalizationLevel);
double latitude = -35.44;
double longitude = 22.34;
GeoPoint point = new GeoPoint(latitude, longitude);
Hex hex = grid.getZoneAt(point);
List<GeoPoint> polygon = hex.getPolygon();
String zoneId = hex.getId();
Hex side and area
Hex side

where b - hex side, d - detalization level, C - Earth meridional circumference (40 007.86 km)
Hex area

where Sb - hex area, d - detalization level, Se - Earth surface area (510072000 km^2)
Examples of work
Detalization level 5

Detalization level 16 (Manhattan)

Detalization level 7 (Australia)

Related Skills
node-connect
343.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
90.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
