map_spatial_grid
Use this skill when the user wants to map latitude/longitude trajectory records, staypoints, trips, or check-ins into spatial grids such as Geohash for aggregation and downstream spatial analysis.
SKILL.mdskills/custom/spatiotemporal_trajectory/map_spatial_grid/SKILL.md
GitHubmap_spatial_grid
Use this Skill to normalize spatial positions into grid IDs before regional aggregation or retrieval.
Command
cd /mnt/skills/custom/map_spatial_grid
python3 scripts/map_spatial_grid.py --input /path/to/cleaned_points.jsonl --output-dir /path/to/output --geohash-precision 6
Optional flags:
--lat-col lat --lon-col lon
Outputs
grid_points.jsonlgrid_summary.jsonlsummary.json
Algorithm
- Latitude/longitude detection
- Pure-Python Geohash encoding
- Grid-level count aggregation
Next Skills
Use grid_points.jsonl with $search_spatiotemporal, $analyze_region_heat, and $mine_trajectory_patterns.