goplaces(地点查询工具)Skill goplaces

goplaces 是一个现代化的 Google Places API 命令行工具,用于查询地点信息。支持关键词搜索、地点详情、地点解析和评价查询,提供人性化或 JSON 格式输出,方便开发者和脚本调用。关键词:Google Places API, 命令行工具, 地点搜索, 地点详情, 地点解析, 评价查询, JSON 输出, CLI 工具, 地理信息查询。

DevOps 0 次安装 0 次浏览 更新于 2/24/2026

name: goplaces description: 通过 goplaces CLI 查询 Google Places API (新版),支持文本搜索、地点详情、地点解析和评价查询。可用于人性化的地点查找,或通过 JSON 输出供脚本使用。 homepage: https://github.com/steipete/goplaces metadata: { “openclaw”: { “emoji”: “📍”, “requires”: { “bins”: [“goplaces”], “env”: [“GOOGLE_PLACES_API_KEY”] }, “primaryEnv”: “GOOGLE_PLACES_API_KEY”, “install”: [ { “id”: “brew”, “kind”: “brew”, “formula”: “steipete/tap/goplaces”, “bins”: [“goplaces”], “label”: “安装 goplaces (brew)”, }, ], }, }

goplaces

现代化的 Google Places API (新版) 命令行工具。默认输出人性化格式,使用 --json 参数可输出供脚本使用的 JSON 格式。

安装

  • Homebrew: brew install steipete/tap/goplaces

配置

  • 必须设置 GOOGLE_PLACES_API_KEY 环境变量。
  • 可选:GOOGLE_PLACES_BASE_URL 用于测试或代理。

常用命令

  • 搜索: goplaces search "咖啡" --open-now --min-rating 4 --limit 5
  • 位置偏好: goplaces search "披萨" --lat 40.8 --lng -73.9 --radius-m 3000
  • 分页: goplaces search "披萨" --page-token "NEXT_PAGE_TOKEN"
  • 解析: goplaces resolve "伦敦苏豪区" --limit 5
  • 详情: goplaces details <place_id> --reviews
  • JSON输出: goplaces search "寿司" --json

注意事项

  • --no-color 或设置 NO_COLOR 环境变量可禁用 ANSI 颜色输出。
  • 价格等级: 0…4 (免费 → 非常昂贵)。
  • 类型筛选器仅发送第一个 --type 参数值 (API 仅接受一个)。