LC044 / LC044/TrailSnap

feat(location): 重游分析 — 发现去了多次的地方,展示访问次数与时间跨度

Open
#59 0 comments 0 reactions 0 assignees View on GitHub

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

功能描述

新增"故地重游"分析功能,按城市/景区统计访问次数和时间跨度(首次到访 vs 最近一次),生成重游列表。

实现思路

  • 后端按 city/province 分组 + COUNT(DISTINCT DATE(take_time)) 计算不同日期的访问次数
  • 返回每个地点的首次到访日期、最近到访日期、累计访问天数
  • 可按访问次数降序排列,高亮"重游3次以上"的地点
  • 前端以卡片列表展示,每张卡片显示:地点名、访问天数、首次/最近时间、代表性照片

优先级

中 — 投入低但用户感知强,与季节筛选配合使用效果更佳

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files or tests. Start by locating the backend location-aggregation entry point and the frontend seasonal-filter and card-list entry points, then trace how city, province, take_time, and representative photos are currently exposed. Done means a sorted repeat-visit list shows visit days, first and latest dates, photos, and highlights places visited at least three times.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
analytics, full-stack
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.