route

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Installation

安装

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
undefined

Install all skills from repo

从仓库安装所有技能

Or install specific skills

或安装特定技能

npx skills add https://github.com/barneyjm/camino-skills --skill route

**Via clawhub:**
```bash
npx clawhub@latest install route
npx skills add https://github.com/barneyjm/camino-skills --skill route

**通过clawhub安装:**
```bash
npx clawhub@latest install route

or: pnpm dlx clawhub@latest install route

或:pnpm dlx clawhub@latest install route

or: bunx clawhub@latest install route

或:bunx clawhub@latest install route

undefined
undefined

Route - 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/start
Returns:
{"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.json
:
json
{
  "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.json
json
{
  "env": {
    "CAMINO_API_KEY": "your-api-key-here"
  }
}
重启Claude Code。

Usage

使用方法

Via Shell Script

通过Shell脚本

bash
undefined
bash
undefined

Get 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 }'
undefined

Via 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

参数

ParameterTypeRequiredDefaultDescription
start_latfloatYes-Starting latitude
start_lonfloatYes-Starting longitude
end_latfloatYes-Ending latitude
end_lonfloatYes-Ending longitude
modestringNo"car"Transport mode: "car", "bike", or "foot"
include_geometryboolNofalseInclude detailed route geometry for mapping
include_imageryboolNofalseInclude street-level imagery at waypoints
参数类型是否必填默认值描述
start_latfloat-起点纬度
start_lonfloat-起点经度
end_latfloat-终点纬度
end_lonfloat-终点经度
modestring"car"交通方式:"car"(驾车)、"bike"(骑行)或"foot"(步行)
include_geometryboolfalse包含用于地图绘制的详细路线几何信息
include_imageryboolfalse在途经点包含街景图像

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
  • 导航:获取任意交通方式的逐向导航指引
  • 行程时间估算:了解两点间的行程耗时
  • 地图可视化:包含几何数据以在地图上绘制路线
  • 通勤规划:对比驾车、骑行和步行的耗时