Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

climbingTiles: add stats #951

Merged
merged 6 commits into from
Feb 11, 2025
Merged

climbingTiles: add stats #951

merged 6 commits into from
Feb 11, 2025

Conversation

zbycz
Copy link
Owner

@zbycz zbycz commented Feb 11, 2025

Description

Add API endpoint /api/climbing-tiles/stats, which shows statistics about last ClimbingTiles refresh and some useful numbers:

eg.

{
  "lastRefresh": "2025-02-11T06:29:30.892Z",
  "osmDataTimestamp": "2025-02-11T06:26:33Z",
  "devStats": {
    "id": 1,
    "build_duration": "91728",
    "max_size": "284394",
    "max_size_zxy": "6/34/21",
    "max_time": "1219",
    "max_time_zxy": "6/34/21"
  },
  "groupsCount": 15970,
  "groupsWithNameCount": 14878,
  "routesCount": 19421
}

Screenshots

In LayerSwitcher we show the timestamp of the data:

image

Checklist

  • dark mode / light mode
  • mobile / desktop
  • NA server-side-rendering (SSR)
  • all texts are localized (in vocabulary.ts)

Copy link

vercel bot commented Feb 11, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
osmapp ✅ Ready (Inspect) Visit Preview Feb 11, 2025 6:40am

@zbycz zbycz merged commit ea8a372 into master Feb 11, 2025
5 checks passed
@zbycz zbycz deleted the ct-stat branch February 11, 2025 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant