spots
Find the hidden gems Google doesn't surface.
Binary: ~/projects/spots/spots or INLINECODE1
Usage
CODEBLOCK0
Options
| Flag | Description | Default |
|---|
| INLINECODE2 | lat,lng directly | - |
| INLINECODE3 |
meters | 500 |
|
-q, --query | search terms | breakfast,brunch,ontbijt,café,bakkerij |
|
--min-rating | 1-5 | - |
|
--min-reviews | count | - |
|
--open-now | only open | false |
|
-o, --output | json/csv/map | json |
Setup
Needs Google API key with Places API + Geocoding API enabled.
CODEBLOCK1
Key stored in 1Password: INLINECODE9
Source
https://github.com/foeken/spots
spots
发现Google未展示的隐藏宝藏。
二进制文件:~/projects/spots/spots 或 go install github.com/foeken/spots@latest
使用方法
bash
按地点名称搜索
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 | 直接输入纬度,经度 | - |
| -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密钥。
bash
spots setup # 完整说明
export GOOGLEPLACESAPI_KEY=...
密钥存储在1Password中:op://Echo/Google API Key/credential
来源
https://github.com/foeken/spots