feat(location): 近邻发现 — 展示同位置不同时间拍摄的照片
Open
Nobody has claimed this yet.
enhancement
status: pending-review
- Dominant language
- Python
- Stars
- 739
- Forks
- 97
- Avg merge
- 10h 3m
- Merged PRs (30d)
- 82
Description
功能描述
选择一张照片后,展示"同位置不同时间拍的照片"——发现故地重游的记忆。类似于"原来这个位置我之前也来过"。
实现思路
- 后端基于当前照片的
latitude/longitude做 bounding box 查询(如 ±0.01 度范围) - 排除同一天拍摄的照片,按时间排序返回
- 可用 PostgreSQL 的
cube扩展或pgvector做近邻搜索 - 前端在照片详情/灯箱中增加"附近照片"入口
- 结果以时间轴形式展示,高亮与当前照片的时间距离
优先级
中 — 功能新颖,发现感强,但需要合适的交互入口
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the photo detail or lightbox entry point and the backend path that handles latitude/longitude queries. Evaluate the proposed PostgreSQL bounding-box approach, including excluding photos from the same day and ordering results by time. Done means the nearby-photo timeline is reachable from photo viewing and returns correctly filtered, time-ordered results.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- postgresql, python
- Domain
- databases, full-stack
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100