geospatial-routing-data
Handle depot/station coordinates, ID↔index mapping, great-circle distance (radius 3960.0 miles), and travel-distance reconstruction/validation for reported routes.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- geospatial-routing-data
- description
- Handle depot/station coordinates, ID↔index mapping, great-circle distance (radius 3960.0 miles), and travel-distance reconstruction/validation for reported routes.
03 SKILL.md 正文
Steps
- Load
/root/data.jsonand build explicitstation_id ↔ internal_indexmaps; never assume IDs are contiguous. - Parse and sanity-check
latitude/longituderanges for depot and every station. - Implement great-circle distance exactly as specified (Earth radius
3960.0) and clamp the cosine term to[-1, 1]to avoid FP domain errors. - Build routing nodes with explicit depot labels:
START="depot_start",END="depot_end"- Internal station nodes are indices
0..n-1, but reports must use original station IDs.
- Build the distance matrix only over arcs actually allowed by the model (often exclude
START→ENDif vehicles must visit ≥1 station). - For any produced
report.json, recompute total travel distance by summing great-circle distances along each vehicle’s reportedroute(after converting station IDs back to indices) and compare tosummary.travel_distance_mileswithin tolerance. - Validate basic route structure from the report:
- starts with
depot_start, ends withdepot_end - contains ≥1 station (if required)
- no station repeats within a vehicle route
- stops list matches the non-depot nodes in the route (same order/length)
- starts with
Expected Result
Distances and route reconstructions match the task’s great-circle metric (radius 3960.0), and reported routes can be validated against coordinates with consistent ID/index handling.
04 同仓库更多 Skills
video-frame-extraction
Extract frames from video files and save them as images using OpenCV
openai-vision
Analyze images and multi-frame sequences using OpenAI GPT vision models
image-ocr
Extract text content from images using Tesseract OCR via Python, including structured field extraction from receipts and forms
video-frame-extraction
Extract frames from video files and save them as images using OpenCV
openai-vision
Analyze images and multi-frame sequences using OpenAI GPT vision models
image-ocr
Extract text content from images using Tesseract OCR via Python, including structured field extraction from receipts and forms