goplaces

goplaces

热门

通过 goplaces 查询 Google Places 的文本搜索、地点详情、解析、评论或可脚本化的 JSON。

38万Star
0Fork
更新于 2026/7/26
SKILL.md
readonly只读
name
goplaces
description

通过 goplaces 查询 Google Places 的文本搜索、地点详情、解析、评论或可脚本化的 JSON。

goplaces

现代化的 Google Places API(新版)命令行工具。默认输出人类可读格式,使用 --json 用于脚本处理。

安装

  • Homebrew:brew install steipete/tap/goplaces

配置

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

常用命令

  • 搜索:goplaces search "coffee" --open-now --min-rating 4 --limit 5
  • 偏置:goplaces search "pizza" --lat 40.8 --lng -73.9 --radius-m 3000
  • 分页:goplaces search "pizza" --page-token "NEXT_PAGE_TOKEN"
  • 解析:goplaces resolve "Soho, London" --limit 5
  • 详情:goplaces details <place_id> --reviews
  • JSON:goplaces search "sushi" --json

注意

  • --no-colorNO_COLOR 禁用 ANSI 颜色。
  • 价格等级:0..4(免费 -> 非常昂贵)。
  • 类型过滤只发送第一个 --type 值(API 只接受一个)。