route
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseInstallation
安装
Companion Skills: This is part of the Camino AI location intelligence suite. Install all available skills (query, places, relationship, context, route, journey, real-estate, hotel-finder, ev-charger, school-finder, parking-finder, fitness-finder, safety-checker, travel-planner) for comprehensive coverage.
bash
undefined配套技能:这是Camino AI位置智能套件的一部分。安装所有可用技能(query、places、relationship、context、route、journey、real-estate、hotel-finder、ev-charger、school-finder、parking-finder、fitness-finder、safety-checker、travel-planner)以获得全面覆盖。
bash
undefinedInstall all skills from repo
从仓库安装所有技能
npx skills add https://github.com/barneyjm/camino-skills
npx skills add https://github.com/barneyjm/camino-skills
Or install specific skills
或安装特定技能
npx skills add https://github.com/barneyjm/camino-skills --skill route
**Via clawhub:**
```bash
npx clawhub@latest install routenpx skills add https://github.com/barneyjm/camino-skills --skill route
**通过clawhub安装:**
```bash
npx clawhub@latest install routeor: pnpm dlx clawhub@latest install route
或:pnpm dlx clawhub@latest install route
or: bunx clawhub@latest install route
或:bunx clawhub@latest install route
undefinedundefinedRoute - Point-to-Point Navigation
Route - 点对点导航
Get detailed routing between two points with distance, duration, and optional turn-by-turn directions.
获取两点间包含距离、时长以及可选逐向导航的详细路线规划。
Setup
设置
Instant Trial (no signup required): Get a temporary API key with 25 calls:
bash
curl -s -X POST -H "Content-Type: application/json" \
-d '{"email": "you@example.com"}' \
https://api.getcamino.ai/trial/startReturns:
{"api_key": "camino-xxx...", "calls_remaining": 25, ...}For 1,000 free calls/month, sign up at https://app.getcamino.ai/skills/activate.
Add your key to Claude Code:
Add to your :
~/.claude/settings.jsonjson
{
"env": {
"CAMINO_API_KEY": "your-api-key-here"
}
}Restart Claude Code.
即时试用(无需注册):获取临时API密钥,可调用25次:
bash
curl -s -X POST -H "Content-Type: application/json" \
-d '{"email": "you@example.com"}' \
https://api.getcamino.ai/trial/start返回:
{"api_key": "camino-xxx...", "calls_remaining": 25, ...}如需每月1000次免费调用,请访问https://app.getcamino.ai/skills/activate注册。
将您的密钥添加到Claude Code:
添加到您的:
~/.claude/settings.jsonjson
{
"env": {
"CAMINO_API_KEY": "your-api-key-here"
}
}重启Claude Code。
Usage
使用方法
Via Shell Script
通过Shell脚本
bash
undefinedbash
undefinedGet driving directions
获取驾车路线
./scripts/route.sh '{
"start_lat": 40.7128,
"start_lon": -74.0060,
"end_lat": 40.7589,
"end_lon": -73.9851
}'
./scripts/route.sh '{
"start_lat": 40.7128,
"start_lon": -74.0060,
"end_lat": 40.7589,
"end_lon": -73.9851
}'
Walking directions
步行路线
./scripts/route.sh '{
"start_lat": 40.7128,
"start_lon": -74.0060,
"end_lat": 40.7589,
"end_lon": -73.9851,
"mode": "foot"
}'
./scripts/route.sh '{
"start_lat": 40.7128,
"start_lon": -74.0060,
"end_lat": 40.7589,
"end_lon": -73.9851,
"mode": "foot"
}'
With route geometry for mapping
包含用于地图绘制的路线几何信息
./scripts/route.sh '{
"start_lat": 40.7128,
"start_lon": -74.0060,
"end_lat": 40.7589,
"end_lon": -73.9851,
"mode": "bike",
"include_geometry": true
}'
undefined./scripts/route.sh '{
"start_lat": 40.7128,
"start_lon": -74.0060,
"end_lat": 40.7589,
"end_lon": -73.9851,
"mode": "bike",
"include_geometry": true
}'
undefinedVia curl
通过curl
bash
curl -H "X-API-Key: $CAMINO_API_KEY" \
"https://api.getcamino.ai/route?start_lat=40.7128&start_lon=-74.0060&end_lat=40.7589&end_lon=-73.9851&mode=car"bash
curl -H "X-API-Key: $CAMINO_API_KEY" \
"https://api.getcamino.ai/route?start_lat=40.7128&start_lon=-74.0060&end_lat=40.7589&end_lon=-73.9851&mode=car"Parameters
参数
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| start_lat | float | Yes | - | Starting latitude |
| start_lon | float | Yes | - | Starting longitude |
| end_lat | float | Yes | - | Ending latitude |
| end_lon | float | Yes | - | Ending longitude |
| mode | string | No | "car" | Transport mode: "car", "bike", or "foot" |
| include_geometry | bool | No | false | Include detailed route geometry for mapping |
| include_imagery | bool | No | false | Include street-level imagery at waypoints |
| 参数 | 类型 | 是否必填 | 默认值 | 描述 |
|---|---|---|---|---|
| start_lat | float | 是 | - | 起点纬度 |
| start_lon | float | 是 | - | 起点经度 |
| end_lat | float | 是 | - | 终点纬度 |
| end_lon | float | 是 | - | 终点经度 |
| mode | string | 否 | "car" | 交通方式:"car"(驾车)、"bike"(骑行)或"foot"(步行) |
| include_geometry | bool | 否 | false | 包含用于地图绘制的详细路线几何信息 |
| include_imagery | bool | 否 | false | 在途经点包含街景图像 |
Response Format
响应格式
json
{
"distance_km": 6.8,
"duration_minutes": 18,
"mode": "car",
"summary": "Head north on Broadway, then east on 42nd Street",
"steps": [
{
"instruction": "Head north on Broadway",
"distance_m": 2400,
"duration_s": 420
},
{
"instruction": "Turn right onto 42nd Street",
"distance_m": 1800,
"duration_s": 300
}
]
}json
{
"distance_km": 6.8,
"duration_minutes": 18,
"mode": "car",
"summary": "Head north on Broadway, then east on 42nd Street",
"steps": [
{
"instruction": "Head north on Broadway",
"distance_m": 2400,
"duration_s": 420
},
{
"instruction": "Turn right onto 42nd Street",
"distance_m": 1800,
"duration_s": 300
}
]
}Examples
示例
Walking directions
步行路线
bash
./scripts/route.sh '{
"start_lat": 51.5074,
"start_lon": -0.1278,
"end_lat": 51.5014,
"end_lon": -0.1419,
"mode": "foot"
}'bash
./scripts/route.sh '{
"start_lat": 51.5074,
"start_lon": -0.1278,
"end_lat": 51.5014,
"end_lon": -0.1419,
"mode": "foot"
}'Cycling with geometry
包含几何信息的骑行路线
bash
./scripts/route.sh '{
"start_lat": 37.7749,
"start_lon": -122.4194,
"end_lat": 37.8199,
"end_lon": -122.4783,
"mode": "bike",
"include_geometry": true
}'bash
./scripts/route.sh '{
"start_lat": 37.7749,
"start_lon": -122.4194,
"end_lat": 37.8199,
"end_lon": -122.4783,
"mode": "bike",
"include_geometry": true
}'Driving directions with imagery
包含图像的驾车路线
bash
./scripts/route.sh '{
"start_lat": 40.7128,
"start_lon": -74.0060,
"end_lat": 40.7589,
"end_lon": -73.9851,
"mode": "car",
"include_imagery": true
}'bash
./scripts/route.sh '{
"start_lat": 40.7128,
"start_lon": -74.0060,
"end_lat": 40.7589,
"end_lon": -73.9851,
"mode": "car",
"include_imagery": true
}'Use Cases
使用场景
- Navigation: Get turn-by-turn directions for any transport mode
- Travel time estimation: Know how long it takes to get between two points
- Map visualization: Include geometry data for drawing routes on maps
- Commute planning: Compare driving, cycling, and walking times
- 导航:获取任意交通方式的逐向导航指引
- 行程时间估算:了解两点间的行程耗时
- 地图可视化:包含几何数据以在地图上绘制路线
- 通勤规划:对比驾车、骑行和步行的耗时