SuperAPI AI 工具集

spots

数据与分析

查看项目

更新于 10-16 05:57

技能介绍

用途

spots 是一个命令行工具,用于对 Google Places 进行穷尽式的搜索(exhaustive search)。它采用基于网格的扫描方式,旨在找出所有地点,而不仅仅是 Google 常规呈现的结果,帮助用户发现 Google 未直接展示的隐藏地点。其简介为“Find the hidden gems Google doesn't surface.”。

主要能力

  • 按地点名称进行搜索
  • 按经纬度坐标进行搜索(可用于分享来自 Telegram 的位置)
  • 获取某个地点的评论
  • 将搜索结果导出为地图(HTML)

使用方式

安装:

# 二进制位于:~/projects/spots/spots
# 或使用 go 安装
go install github.com/foeken/spots@latest

按地点名称搜索:

spots "Arnhem Centrum" -r 800 -q "breakfast,brunch" --min-rating 4

按坐标搜索(分享来自 Telegram 的位置):

spots -c 51.9817,5.9093 -r 500 -q "coffee"

获取某地点的评论:

spots reviews "Koffiebar FRENKIE"

导出到地图:

spots "Amsterdam De Pijp" -r 600 -o map --out breakfast.html

设置帮助:

spots setup

选项

参数 说明 默认值
-c, --coords 直接提供 lat,lng -
-r, --radius 半径,单位米 500
-q, --query 搜索词 breakfast,brunch,ontbijt,café,bakkerij
--min-rating 最低评分,1-5 -
--min-reviews 最低评论数 -
--open-now 仅显示营业中 false
-o, --output json/csv/map json

设置

需要启用 Places API + Geocoding API 的 Google API 密钥。

spots setup  # full instructions
export GOOGLE_PLACES_API_KEY="..."

密钥存储在 1Password:op://Echo/Google API Key/credential

来源

https://github.com/foeken/spots

限制

资料未提供关于收费、价格、平台支持范围及具体使用效果的信息,暂未提供。