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

Stats API #185

Merged
merged 4 commits into from
Aug 20, 2024
Merged

Stats API #185

merged 4 commits into from
Aug 20, 2024

Conversation

Freika
Copy link
Owner

@Freika Freika commented Aug 20, 2024

curl http://dawarich.mydomain.com/api/v1/stats?api_key=API_KEY

{
  "totalDistanceKm": 77130,
  "totalPointsTracked": 11,
  "totalReverseGeocodedPoints": 11,
  "totalCountriesVisited": 6,
  "totalCitiesVisited": 4,
  "yearlyStats": [
    {
      "year": 2024,
      "totalDistanceKm": 75452,
      "totalCountriesVisited": 6,
      "totalCitiesVisited": 4,
      "monthlyDistanceKm": {
        "january": 96,
        "february": 60814,
        "march": 1346,
        "april": 1567,
        "may": 7677,
        "june": 2077,
        "july": 1875,
        "august": 0,
        "september": 0,
        "october": 0,
        "november": 0,
        "december": 0
      }
    },
    {
      "year": 2019,
      "totalDistanceKm": 1678,
      "totalCountriesVisited": 6,
      "totalCitiesVisited": 4,
      "monthlyDistanceKm": {
        "january": 0,
        "february": 0,
        "march": 0,
        "april": 1678,
        "may": 0,
        "june": 0,
        "july": 0,
        "august": 0,
        "september": 0,
        "october": 0,
        "november": 0,
        "december": 0
      }
    },
    {
      "year": 2013,
      "totalDistanceKm": 0,
      "totalCountriesVisited": 6,
      "totalCitiesVisited": 4,
      "monthlyDistanceKm": {
        "january": 0,
        "february": 0,
        "march": 0,
        "april": 0,
        "may": 0,
        "june": 0,
        "july": 0,
        "august": 0,
        "september": 0,
        "october": 0,
        "november": 0,
        "december": 0
      }
    }
  ]
}

@Freika Freika merged commit 79125fb into master Aug 20, 2024
1 check failed
@Freika Freika deleted the feature/stats-api branch August 29, 2024 14:54
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