谷歌地点查询CLI工具Skill goplaces

goplaces 是一个命令行界面工具,用于查询 Google Places API,支持地点搜索、详情查看、解析和评论获取,适用于自动化脚本和人类友好的地点查找。关键词:Google Places API, CLI, 地点搜索, JSON输出, 自动化, 命令行工具, 地点查询, 地图服务, 开发工具。

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

name: goplaces description: 通过 goplaces CLI 查询 Google Places API(新版),用于文本搜索、地点详情、解析和评论。适用于人类友好的地点查找或脚本的 JSON 输出。 homepage: https://github.com/steipete/goplaces metadata: { “otto”: { “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(新版)CLI。默认输出人类可读格式,使用 --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-colorNO_COLOR 禁用 ANSI 颜色。
  • 价格等级:0…4(免费 → 非常昂贵)。
  • 类型过滤器仅发送第一个 --type 值(API 只接受一个)。