context
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配套Skill:这是Camino AI位置智能套件的一部分。为获得完整功能,建议安装所有可用的Skill(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
从仓库安装所有Skill
npx skills add https://github.com/barneyjm/camino-skills
npx skills add https://github.com/barneyjm/camino-skills
Or install specific skills
或安装特定Skill
npx skills add https://github.com/barneyjm/camino-skills --skill context
**Via clawhub:**
```bash
npx clawhub@latest install contextnpx skills add https://github.com/barneyjm/camino-skills --skill context
**通过clawhub安装:**
```bash
npx clawhub@latest install contextor: pnpm dlx clawhub@latest install context
或:pnpm dlx clawhub@latest install context
or: bunx clawhub@latest install context
或:bunx clawhub@latest install context
undefinedundefinedContext - Location Analysis
Context - 位置分析
Get comprehensive context about a location including nearby places, area description, and optional weather.
获取某一地点的全面环境信息,包括周边场所、区域描述以及可选的天气信息。
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 context about a location
获取某一地点的环境信息
./scripts/context.sh '{
"location": {"lat": 40.7589, "lon": -73.9851},
"radius": 500
}'
./scripts/context.sh '{
"location": {"lat": 40.7589, "lon": -73.9851},
"radius": 500
}'
With specific context for tailored insights
添加特定上下文以获取定制化洞察
./scripts/context.sh '{
"location": {"lat": 40.7589, "lon": -73.9851},
"radius": 500,
"context": "lunch options"
}'
./scripts/context.sh '{
"location": {"lat": 40.7589, "lon": -73.9851},
"radius": 500,
"context": "lunch options"
}'
Include weather data
包含天气数据
./scripts/context.sh '{
"location": {"lat": 40.7589, "lon": -73.9851},
"include_weather": true,
"weather_forecast": "hourly"
}'
undefined./scripts/context.sh '{
"location": {"lat": 40.7589, "lon": -73.9851},
"include_weather": true,
"weather_forecast": "hourly"
}'
undefinedVia curl
通过curl调用
bash
curl -X POST -H "X-API-Key: $CAMINO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"location": {"lat": 40.7589, "lon": -73.9851}, "radius": 500, "context": "lunch options"}' \
"https://api.getcamino.ai/context"bash
curl -X POST -H "X-API-Key: $CAMINO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"location": {"lat": 40.7589, "lon": -73.9851}, "radius": 500, "context": "lunch options"}' \
"https://api.getcamino.ai/context"Parameters
参数说明
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| location | object | Yes | - | Coordinate with lat/lon |
| radius | int | No | 500 | Search radius in meters |
| context | string | No | - | Context for tailored insights (e.g., "outdoor dining") |
| time | string | No | - | Temporal query format |
| include_weather | bool | No | false | Include weather data |
| weather_forecast | string | No | "daily" | "daily" or "hourly" |
| 字段 | 类型 | 是否必填 | 默认值 | 描述 |
|---|---|---|---|---|
| location | 对象 | 是 | - | 包含lat(纬度)和lon(经度)的坐标 |
| radius | 整数 | 否 | 500 | 搜索半径(单位:米) |
| context | 字符串 | 否 | - | 用于定制化洞察的上下文(例如:"outdoor dining") |
| time | 字符串 | 否 | - | 时间查询格式 |
| include_weather | 布尔值 | 否 | false | 是否包含天气数据 |
| weather_forecast | 字符串 | 否 | "daily" | 可选值为"daily"(每日)或"hourly"(每小时) |
Response Format
响应格式
json
{
"area_description": "Busy commercial district in Midtown Manhattan...",
"relevant_places": {
"restaurants": [...],
"cafes": [...],
"transit": [...]
},
"location": {"lat": 40.7589, "lon": -73.9851},
"search_radius": 500,
"total_places_found": 47,
"context_insights": "For lunch, you have many options including..."
}json
{
"area_description": "Busy commercial district in Midtown Manhattan...",
"relevant_places": {
"restaurants": [...],
"cafes": [...],
"transit": [...]
},
"location": {"lat": 40.7589, "lon": -73.9851},
"search_radius": 500,
"total_places_found": 47,
"context_insights": "For lunch, you have many options including..."
}Examples
示例
Tourist context
游客场景
bash
./scripts/context.sh '{
"location": {"lat": 48.8584, "lon": 2.2945},
"radius": 1000,
"context": "tourist visiting Paris"
}'bash
./scripts/context.sh '{
"location": {"lat": 48.8584, "lon": 2.2945},
"radius": 1000,
"context": "tourist visiting Paris"
}'Business meeting location
商务会议场景
bash
./scripts/context.sh '{
"location": {"lat": 40.7589, "lon": -73.9851},
"radius": 500,
"context": "business meeting",
"include_weather": true
}'bash
./scripts/context.sh '{
"location": {"lat": 40.7589, "lon": -73.9851},
"radius": 500,
"context": "business meeting",
"include_weather": true
}'Outdoor activity planning
户外活动规划场景
bash
./scripts/context.sh '{
"location": {"lat": 37.7749, "lon": -122.4194},
"context": "outdoor activities",
"include_weather": true,
"weather_forecast": "hourly"
}'bash
./scripts/context.sh '{
"location": {"lat": 37.7749, "lon": -122.4194},
"context": "outdoor activities",
"include_weather": true,
"weather_forecast": "hourly"
}'Use Cases
使用场景
- Trip planning: Understand what's around a destination before visiting
- Meeting locations: Find suitable venues for different types of meetings
- Local recommendations: Provide context-aware suggestions based on user needs
- Weather-aware planning: Include weather data for outdoor activity planning
- 行程规划:在前往目的地前了解周边环境
- 会议选址:为不同类型的会议寻找合适场所
- 本地推荐:根据用户需求提供基于位置的个性化建议
- 天气敏感型规划:为户外活动规划提供天气数据支持