query
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 query
**Via clawhub:**
```bash
npx clawhub@latest install querynpx skills add https://github.com/barneyjm/camino-skills --skill query
**通过clawhub安装:**
```bash
npx clawhub@latest install queryor: pnpm dlx clawhub@latest install query
或:pnpm dlx clawhub@latest install query
or: bunx clawhub@latest install query
或:bunx clawhub@latest install query
undefinedundefinedQuery - Natural Language Place Search
Query - 自然语言地点搜索
Search for places using natural language. The AI automatically generates coordinates for known locations when not provided.
使用自然语言搜索地点。当未提供坐标时,AI会自动为已知地点生成坐标。
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.
即时试用(无需注册):获取包含25次调用额度的临时API密钥:
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
undefinedSearch for coffee shops near Times Square
搜索时代广场附近的咖啡店
./scripts/query.sh '{"query": "coffee shops near Times Square", "limit": 5}'
./scripts/query.sh '{"query": "coffee shops near Times Square", "limit": 5}'
Search with specific coordinates
使用特定坐标搜索
./scripts/query.sh '{"query": "quiet cafes with wifi", "lat": 40.7589, "lon": -73.9851, "radius": 500}'
./scripts/query.sh '{"query": "quiet cafes with wifi", "lat": 40.7589, "lon": -73.9851, "radius": 500}'
Get AI-generated answer with results
获取包含结果的AI生成回答
./scripts/query.sh '{"query": "best pizza in Manhattan", "answer": true, "rank": true}'
undefined./scripts/query.sh '{"query": "best pizza in Manhattan", "answer": true, "rank": true}'
undefinedVia curl
通过curl
bash
curl -H "X-API-Key: $CAMINO_API_KEY" \
"https://api.getcamino.ai/query?query=coffee+shops+near+Times+Square&limit=5"bash
curl -H "X-API-Key: $CAMINO_API_KEY" \
"https://api.getcamino.ai/query?query=coffee+shops+near+Times+Square&limit=5"Parameters
参数
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| query | string | Yes* | - | Natural language query (e.g., "coffee shops near Times Square") |
| lat | float | No | - | Latitude for search center. AI generates if omitted for known locations. |
| lon | float | No | - | Longitude for search center. AI generates if omitted for known locations. |
| radius | int | No | 1000 | Search radius in meters (100-50000) |
| rank | bool | No | true | Use AI to rank results by relevance |
| limit | int | No | 20 | Maximum results (1-100) |
| offset | int | No | 0 | Pagination offset |
| answer | bool | No | false | Generate human-readable summary |
| time | string | No | - | Temporal query: "2020-01-01", "2020..", or "2020..2024" |
| osm_ids | string | No | - | Comma-separated OSM IDs (e.g., "node/123,way/456") |
| mode | string | No | "basic" | "basic" (OSM only) or "advanced" (web enrichment) |
*Either or is required.
queryosm_ids| 参数 | 类型 | 是否必填 | 默认值 | 描述 |
|---|---|---|---|---|
| query | 字符串 | 是* | - | 自然语言查询(例如:"coffee shops near Times Square") |
| lat | 浮点数 | 否 | - | 搜索中心点纬度。若为已知地点,可省略该参数,由AI自动生成坐标。 |
| lon | 浮点数 | 否 | - | 搜索中心点经度。若为已知地点,可省略该参数,由AI自动生成坐标。 |
| radius | 整数 | 否 | 1000 | 搜索半径(单位:米,范围100-50000) |
| rank | 布尔值 | 否 | true | 使用AI按相关性对结果排序 |
| limit | 整数 | 否 | 20 | 最大返回结果数(范围1-100) |
| offset | 整数 | 否 | 0 | 分页偏移量 |
| answer | 布尔值 | 否 | false | 生成人类可读的结果摘要 |
| time | 字符串 | 否 | - | 时间范围查询:格式为"2020-01-01"、"2020.."或"2020..2024" |
| osm_ids | 字符串 | 否 | - | 逗号分隔的OSM ID(例如:"node/123,way/456") |
| mode | 字符串 | 否 | "basic" | "basic"(仅使用OSM数据)或"advanced"(结合网络补充数据) |
*或二者必填其一。
queryosm_idsResponse Format
响应格式
json
{
"query": "quiet coffee shops with wifi",
"results": [
{
"name": "Blue Bottle Coffee",
"lat": 40.7601,
"lon": -73.9847,
"type": "cafe",
"distance_m": 150,
"relevance_score": 0.95,
"address": "..."
}
],
"ai_ranked": true,
"pagination": {
"total_results": 23,
"limit": 5,
"offset": 0,
"has_more": true
},
"answer": "I found several quiet coffee shops with wifi near Times Square..."
}json
{
"query": "quiet coffee shops with wifi",
"results": [
{
"name": "Blue Bottle Coffee",
"lat": 40.7601,
"lon": -73.9847,
"type": "cafe",
"distance_m": 150,
"relevance_score": 0.95,
"address": "..."
}
],
"ai_ranked": true,
"pagination": {
"total_results": 23,
"limit": 5,
"offset": 0,
"has_more": true
},
"answer": "I found several quiet coffee shops with wifi near Times Square..."
}Examples
示例
Find nearby restaurants
查找附近餐厅
bash
./scripts/query.sh '{"query": "Italian restaurants", "lat": 40.7128, "lon": -74.0060, "limit": 10}'bash
./scripts/query.sh '{"query": "Italian restaurants", "lat": 40.7128, "lon": -74.0060, "limit": 10}'Search with AI answer
搜索并获取AI生成的回答
bash
./scripts/query.sh '{"query": "best brunch spots in Brooklyn", "answer": true}'bash
./scripts/query.sh '{"query": "best brunch spots in Brooklyn", "answer": true}'Historical data query
历史数据查询
bash
./scripts/query.sh '{"query": "restaurants", "lat": 40.7589, "lon": -73.9851, "time": "2020-01-01"}'bash
./scripts/query.sh '{"query": "restaurants", "lat": 40.7589, "lon": -73.9851, "time": "2020-01-01"}'Best Practices
最佳实践
- For known locations (cities, landmarks), you can omit lat/lon and let the AI generate coordinates
- Use for more relevant results when searching by attributes (e.g., "quiet", "cheap")
rank: true - Enable when you need a natural language summary of results
answer: true - Use for richer place data from web sources
mode: "advanced" - Keep queries descriptive but concise for best AI interpretation
- 对于已知地点(城市、地标),可省略lat/lon参数,由AI自动生成坐标
- 当按属性(如"安静"、"便宜")搜索时,设置可获得更相关的结果
rank: true - 当需要结果的自然语言摘要时,启用
answer: true - 使用可获取来自网络来源的更丰富地点数据
mode: "advanced" - 保持查询描述性但简洁,以获得最佳AI解析效果