SuperAPI AI 工具集

goplaces

编程与开发

查看项目

更新于 10-16 09:59

技能介绍

用途:通过 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 只接受一个。未提供收费、支持平台与效果等信息。