SuperAPI AI 工具集

goplaces

通用与其它

查看项目

更新于 10-16 07:15

技能介绍

用途:通过 goplaces CLI 查询 Google Places API(New),完成文本搜索、地点解析、地点详情与评论查询,适合人工查地点或为脚本输出 JSON。

安装: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-color 或 NO_COLOR 关闭 ANSI 颜色;价格区间为 0..4(免费到非常昂贵);类型过滤只发送首个 --type 值,因为 API 只接受一个。需自行准备有效的 API 密钥,其余收费、配额、平台支持等资料暂未提供。