Loading...
Loading...
Compare original and translation side by side
undefinedundefined
**Via clawhub:**
```bash
npx clawhub@latest install travel-planner
**通过clawhub安装**:
```bash
npx clawhub@latest install travel-plannerundefinedundefinedcurl -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, ...}~/.claude/settings.json{
"env": {
"CAMINO_API_KEY": "your-api-key-here"
}
}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, ...}~/.claude/settings.json{
"env": {
"CAMINO_API_KEY": "your-api-key-here"
}
}undefinedundefinedundefinedundefinedcurl -X POST -H "X-API-Key: $CAMINO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"waypoints": [
{"lat": 48.8584, "lon": 2.2945, "purpose": "Eiffel Tower"},
{"lat": 48.8606, "lon": 2.3376, "purpose": "Louvre"}
],
"constraints": {"transport": "foot", "time_budget": "4 hours"}
}' \
"https://api.getcamino.ai/journey"curl -X POST -H "X-API-Key: $CAMINO_API_KEY" \\
-H "Content-Type: application/json" \\
-d '{
"waypoints": [
{"lat": 48.8584, "lon": 2.2945, "purpose": "Eiffel Tower"},
{"lat": 48.8606, "lon": 2.3376, "purpose": "Louvre"}
],
"constraints": {"transport": "foot", "time_budget": "4 hours"}
}' \\
"https://api.getcamino.ai/journey"| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| waypoints | array | Yes | - | List of stops with lat, lon, and purpose (min 2) |
| constraints | object | No | - | Trip constraints |
| constraints.transport | string | No | "walking" | Transport mode: "walking", "car", or "bike" |
| constraints.time_budget | string | No | - | Time limit (e.g., "4 hours", "90 minutes") |
| constraints.preferences | array | No | [] | Route preferences |
| 字段 | 类型 | 是否必填 | 默认值 | 描述 |
|---|---|---|---|---|
| waypoints | 数组 | 是 | - | 包含经纬度和出行目的的站点列表(至少2个) |
| constraints | 对象 | 否 | - | 行程限制条件 |
| constraints.transport | 字符串 | 否 | "walking" | 交通方式:"walking"(步行)、"car"(自驾)或"bike"(骑行) |
| constraints.time_budget | 字符串 | 否 | - | 时间限制(例如:"4 hours"、"90 minutes") |
| constraints.preferences | 数组 | 否 | [] | 路线偏好 |
| Field | Type | Required | Description |
|---|---|---|---|
| lat | float | Yes | Latitude of the stop |
| lon | float | Yes | Longitude of the stop |
| purpose | string | No | Description of the stop (e.g., "Eiffel Tower", "lunch break") |
| 字段 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
| lat | 浮点数 | 是 | 站点纬度 |
| lon | 浮点数 | 是 | 站点经度 |
| purpose | 字符串 | 否 | 站点描述(例如:"Eiffel Tower"、"午餐休息") |
{
"feasible": true,
"total_distance_km": 6.8,
"total_time_minutes": 85,
"total_time_formatted": "1 hour 25 minutes",
"transport_mode": "foot",
"route_segments": [
{
"from": "Eiffel Tower",
"to": "Louvre Museum",
"distance_km": 3.4,
"duration_minutes": 42
},
{
"from": "Louvre Museum",
"to": "Notre-Dame",
"distance_km": 3.4,
"duration_minutes": 43
}
],
"analysis": {
"summary": "This walking tour is feasible within your 4-hour time budget...",
"optimization_opportunities": ["Consider starting at the Louvre to reduce backtracking"]
}
}{
"feasible": true,
"total_distance_km": 6.8,
"total_time_minutes": 85,
"total_time_formatted": "1 hour 25 minutes",
"transport_mode": "foot",
"route_segments": [
{
"from": "Eiffel Tower",
"to": "Louvre Museum",
"distance_km": 3.4,
"duration_minutes": 42
},
{
"from": "Louvre Museum",
"to": "Notre-Dame",
"distance_km": 3.4,
"duration_minutes": 43
}
],
"analysis": {
"summary": "This walking tour is feasible within your 4-hour time budget...",
"optimization_opportunities": ["Consider starting at the Louvre to reduce backtracking"]
}
}./scripts/travel-planner.sh '{
"waypoints": [
{"lat": 48.8584, "lon": 2.2945, "purpose": "Eiffel Tower"},
{"lat": 48.8606, "lon": 2.3376, "purpose": "Louvre Museum"},
{"lat": 48.8530, "lon": 2.3499, "purpose": "Notre-Dame Cathedral"},
{"lat": 48.8867, "lon": 2.3431, "purpose": "Sacre-Coeur"}
],
"constraints": {
"transport": "foot",
"time_budget": "6 hours"
}
}'./scripts/travel-planner.sh '{
"waypoints": [
{"lat": 48.8584, "lon": 2.2945, "purpose": "Eiffel Tower"},
{"lat": 48.8606, "lon": 2.3376, "purpose": "Louvre Museum"},
{"lat": 48.8530, "lon": 2.3499, "purpose": "Notre-Dame Cathedral"},
{"lat": 48.8867, "lon": 2.3431, "purpose": "Sacre-Coeur"}
],
"constraints": {
"transport": "foot",
"time_budget": "6 hours"
}
}'./scripts/travel-planner.sh '{
"waypoints": [
{"lat": 40.7128, "lon": -74.0060, "purpose": "Start at Battery Park"},
{"lat": 40.6892, "lon": -74.0445, "purpose": "Statue of Liberty viewpoint"},
{"lat": 40.7061, "lon": -73.9969, "purpose": "Brooklyn Bridge"},
{"lat": 40.7580, "lon": -73.9855, "purpose": "Times Square"}
],
"constraints": {
"transport": "bike",
"time_budget": "3 hours"
}
}'./scripts/travel-planner.sh '{
"waypoints": [
{"lat": 40.7128, "lon": -74.0060, "purpose": "Start at Battery Park"},
{"lat": 40.6892, "lon": -74.0445, "purpose": "Statue of Liberty viewpoint"},
{"lat": 40.7061, "lon": -73.9969, "purpose": "Brooklyn Bridge"},
{"lat": 40.7580, "lon": -73.9855, "purpose": "Times Square"}
],
"constraints": {
"transport": "bike",
"time_budget": "3 hours"
}
}'./scripts/travel-planner.sh '{
"waypoints": [
{"lat": 37.7749, "lon": -122.4194, "purpose": "Office downtown"},
{"lat": 37.7849, "lon": -122.4094, "purpose": "Client meeting"},
{"lat": 37.7900, "lon": -122.4000, "purpose": "Lunch"},
{"lat": 37.7749, "lon": -122.4194, "purpose": "Return to office"}
],
"constraints": {
"transport": "car",
"time_budget": "2 hours"
}
}'./scripts/travel-planner.sh '{
"waypoints": [
{"lat": 37.7749, "lon": -122.4194, "purpose": "Office downtown"},
{"lat": 37.7849, "lon": -122.4094, "purpose": "Client meeting"},
{"lat": 37.7900, "lon": -122.4000, "purpose": "Lunch"},
{"lat": 37.7749, "lon": -122.4194, "purpose": "Return to office"}
],
"constraints": {
"transport": "car",
"time_budget": "2 hours"
}
}'purposetime_budgetqueryhotel-findercontextpurposetime_budgetqueryhotel-findercontext