关于 google-maps
通过 Google Maps 提供地理编码、地点搜索、路线和位置数据查询,适用于需要位置服务的场景。Skill 使用 Refly CLI 启动工作流,并提取文本形式的 JSON 结果。
主要功能
- 01地址地理编码
- 02按名称或类别搜索地点
- 03获取路线和位置数据
- 04通过 Refly 工作流提取结果
适用场景
- 01将地址转换为坐标
- 02查找特定类型的地点
- 03获取地点相关的路线信息
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ refly-ai/ refly-skills --skill google-maps安装后在 Claude Code 中输入/google-maps确认已加载。
附带文件README.md
详细介绍
Google Maps
与 Google Maps 集成以提供位置服务。在以下情况下使用:(1)将地址地理编码为坐标,(2)搜索地点,或(3)获取路线和位置数据。
输入
以 JSON 格式提供输入:
{
"search_query": "Location or place name to search for (e.g., 'Eiffel Tower', 'restaurants in New York', '1600 Amphitheatre Parkway')",
"place_type": "Type of place to search for (e.g., 'restaurant', 'hotel', 'museum', 'cafe'). Leave empty for general search."
}
执行(模式 B:文本/数据)
步骤 1:运行技能并获取运行 ID
RESULT=$(refly skill run --id skpi-cvy0z7sx46moqd1w590mygq3 --input '{
"address": "1600 Amphitheatre Parkway, Mountain View, CA",
"action": "geocode"
}')
RUN_ID=$(echo "$RESULT" | jq -r '.payload.workflowExecutions[0].id')
# RUN_ID is we-xxx format, use this for workflow commands
步骤 2:在浏览器中打开工作流并等待完成
open "https://refly.ai/workflow/c-b6hhdfj7pt9c1yrowfbmx5vc"
refly workflow status "$RUN_ID" --watch --interval 30000
步骤 3:提取文本内容
# Get location data from toolcalls
CONTENT=$(refly workflow toolcalls "$RUN_ID" --files --latest | jq -r '.payload.nodes[].content')
echo "$CONTENT"
预期输出
- 类型:文本内容
- 格式:JSON 位置/地理编码数据
- 操作:向用户显示位置信息
规则
遵循基础技能工作流:~/.claude/skills/refly/SKILL.md
评论
支持 Markdown