dsh-geodesy
Geodesic math toolbox for DeepSeek Harness (dsh): great-circle distance, bearings, destination points, and DMS coordinate parsing — zero runtime dependencies
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:TYEclipse/dsh-geodesy说明文档
阅读完整 README ↗Usage
Ask the agent questions that involve Earth-surface math; it will call the tools automatically:
- "What is the great-circle distance from Beijing to Shanghai?"
- "Which direction is New York from London, and where is the midpoint?"
- "I'm 200 km due east of Paris — where am I?"
- "Parse 37°46′30″N, 122°25′8.4″W into decimal degrees."
Examples
geo_distance — Beijing (39.9042, 116.4074) → Shanghai (31.2304, 121.4737):
{
"valid": true,
"unit": "km",
"distance": 1067.311645,
"kilometers": 1067.311645,
"miles": 663.196709,
"nauticalMiles": 576.302184,
"initialBearing": 153.072675,
"finalBearing": 156.029266,
"compass": "SSE"
}
coord_parse:
{
"valid": true,
"input": "37°46′30″N, 122°25′8.4″W",
"latitude": 37.775,
"longitude": -122.419,
"latDms": "37°46′30″N",
"lonDms": "122°25′8.4″W"
}
Configuration
plugins:
dsh-geodesy:
radiusKm: 6371.0088 # sphere radius; use 1737.4 for the Moon, 3389.5 for Mars