GeoChallenge-Tracker

Web application that automatically tracks progress on geocaching challenges, from finds imported as GPX files.

Latest change: Reduced code duplication across the backend and frontend

Recruiter view

GeoChallenge-Tracker difficulty / terrain matrix: all 81 combinations completed, with the number of caches found for each, two full rounds done and the combination missing for the next one
See the screenshot at full size
Problem
In geocaching, a "challenge" cache can only be logged once a condition on your past finds is met, for example one cache for each of the 81 difficulty and terrain combinations, one for each day of the year, or a given number of caches of a certain type in a country. Geocachers track these conditions by hand, in spreadsheets, across thousands of finds.
What was built
A full-stack web application, with a FastAPI API of more than 70 endpoints on MongoDB and a Vue 3 interface with interactive maps. It imports finds from GPX files, detects challenge caches, describes the rules of each challenge as data, computes progress and suggests the caches that would move it forward, including around a given point.
Result
I use it in my own geocaching, and real testers use it too. The project went through a full security audit (OWASP Top 10, ASVS), and every finding was fixed.
Skills
REST API, Python / FastAPI, MongoDB, Geospatial data
Stack
Python, FastAPI, MongoDB, Vue 3, TypeScript, Leaflet, Docker

Lead dev view

GeoChallenge-Tracker comes from a personal practice: I am a geocacher, and I wanted the tool to do the counting for me. It is also the most complete project of the portfolio, from GPX file parsing to the interactive map, through authentication security.

Architecture

GeoChallenge-Tracker architecture: GPX or ZIP files, import and challenge detection, MongoDB with a geospatial index, then rules as expression trees compiled into MongoDB queries, progress and target caches, Vue 3 interface with Leaflet maps

The FastAPI backend follows a hexagonal layout: routes, domain, services, technical core and data access are kept apart. The import reads the GPX or ZIP exports of geocaching apps, stores caches and finds in MongoDB, then spots the challenge caches among them. Each challenge carries its rules as an expression tree, compiled into a MongoDB query to measure progress and look for target caches. The Vue 3 frontend shows the matrices, calendars and maps; map tiles go through an nginx proxy with a disk cache.

Key decisions

A difficulty

The map of finds by department required placing each cache in a zone. I planned three passes: is the point inside a polygon; if not, what does Nominatim's reverse geocoding say; if not, which polygon is the nearest, within about ten kilometers. That last pass was there for a good reason: outlines are simplified, and a cache by the sea can fall just outside its department.

Then I found caches in Llívia, a Spanish enclave inside French territory, a few kilometers from the border. This case brought out two problems. The first is the accuracy of a border's outline, departmental or national: near a boundary, a simplified outline can put a point on the wrong side. The second is nesting: a polygon can contain another one that belongs to a different entity. In the data, the Pyrénées-Orientales polygon does have a hole where the enclave is; but a point in that hole found no department, and the third pass attached it to the nearest one.

The fix relies on the country rather than on distance. Reverse geocoding now returns the country code: a point identified as foreign is excluded from the proximity fallback, and caches are filtered by country before assignment even starts. The lesson stayed with me: a fallback that is sound in the general case turns wrong as soon as real geography steps outside the model.

Quality

The backend is tested with pytest, the frontend with Vitest, and both suites run on every change in a GitHub Actions CI, with coverage tracked separately per part on Codecov; the README badges give the current figures. The CI also audits dependencies (pip-audit, npm audit). A full security audit, run against the OWASP Top 10 and ASVS, led to targeted fixes: rate limiting on authentication, refresh token revocation, password hashing moved to Argon2id with transparent migration of existing accounts, a cap on the decompressed size of imported archives. Decisions are recorded in ADRs.

Timeline

What I would do differently

I would set up tests and CI from the start. For months, features piled up with partial coverage, and it took a dedicated campaign to catch up, route by route. The catch-up mostly cost confidence: every refactoring of that period was done without a full safety net. Written along the way, those tests would have cost less, and would have guided the design rather than recording it after the fact.

Architecture decisions (ADR)