Inspiration
A lot of people we know aren't doing great, and most of them are stuck in the same loop: wake up, class, back to the room, phone, sleep. Honestly, we're not much better. We've lived in London for years and still couldn't tell you what's two streets over.
That loop is a bigger deal than it sounds:
- 1 in 5 Canadians aged 15 to 24 feel lonely often or always (CMHA)
- The WHO links loneliness to about 871,000 deaths a year (WHO)
- Hours of zoning out in front of the TV are linked to a higher risk of depression (meta-analysis)
- Walking more is linked to a lower risk of depression (JAMA Network Open)
So is spending 2+ hours a week outside (Scientific Reports) So everyone kind of knows the answer is "go outside." But:
Nobody actually goes because someone told them to
Fitness apps want you faster or further, and on a bad day you don't care about your pace What does get us out the door? Games in a way. Every open-world game has that map that starts blank and fills in as you explore, and that one dark corner always bugs you. We wanted that for your real city and if everyone nearby gets the same quests, you end up at the same bench as other people without having to go talk to a stranger.
What our project does
- Clear the fog. Your city starts covered in clouds. Walk, run or bike and they clear for good, one hexagon at a time.
- Daily sidequests. A few real things to find nearby each day, like a bench on University College Hill or a tree by the library. Everyone in the area gets the same ones.
- Photo check. Within 40 m the camera unlocks. Gemini makes sure it's the real object, not a photo of your screen.
- Holographic stickers. The object gets cut out of your photo into a sticker that shimmers when you tilt your phone.
- Explore mode. No quest, just wander. It tracks your time, distance, route and new ground uncovered.
- Activity feed. Your walk shows up with your stats, sticker and the shape of your route, so you can see who else was out today.
- Campus leaderboard. Most of Western explored, time out or distance, by day, week or month. ## How we built it
The app
- Native iOS in SwiftUI, every screen designed in Figma first
- MapKit for the map, with our own cloud layer and dispersal animation on top
One of the blur effects is a Metal shader we ported by hand
The map grid
Uber's H3 hexagons at resolution 11: about 29 m per side, roughly \(2{,}150\ \text{m}^2\)
Every GPS fix is filtered for accuracy and speed
Gaps are filled in every 10 m so fast movement doesn't leave holes
Cleared tiles are saved on the phone with SwiftData
FogKit
Our shared Swift package: location, sessions, the quest camera flow, an offline-first sync queue and networking
Covered by 76 automated tests
The backend
Supabase: Postgres with PostGIS, anonymous sign-in and storage
Six TypeScript Edge Functions: sync, quests, verification, profile, feed and leaderboard
Row-level security on every table, so the app can only reach data through those functions
Quest objects, footpaths and the campus, park and city boundaries all come from OpenStreetMap
Leaderboard math
$$\text{explored} = \frac{\text{tiles you first cleared in the period inside the area}}{\text{total tiles in the area}} \times 100$$
- For areas too big to list every tile, we find each tile's parent hexagon right in SQL with bit operations on the 64-bit H3 index
We checked it against the official H3 library
Challenges we ran into
Gemini kept falling over. Timeouts, 503s, empty 404s. We made the model swappable with one setting, made failed checks not cost an attempt, and added an on-device fallback so the demo can't die on stage.
No Apple Developer account. No Sign in with Apple, so we built anonymous sign-in on Supabase with the session in the Keychain and tokens that refresh on their own.
One of us has no Mac. We wrote the API contract and schema first, so the app and backend got built at the same time against fake responses.
Privacy vs. social. A feed of walks is fun until it shows everyone where you live, and an app that makes you feel watched won't make anyone feel less alone. Posts only show your route's shape in a square, with no coordinates and no scale. The leaderboard is just usernames and totals.
GPS is a mess. Jitter, fixes that teleport you across the street, and a Simulator that doesn't move. We built a filter, then a joystick, then route playback just to test from inside.
Accomplishments that we're proud of
It feels like a game, not a fitness tracker: clouds parting, stickers shimmering, smooth transitions
The backend is real. Quests, sessions, the feed and the leaderboard all run on live data
Privacy was there from the start, not patched in at the end
It's something we'd actually send to a friend who hasn't left their room all weekend
What we learned
1 in 5 young Canadians feeling lonely is a lot of people, probably including some we sit next to in lectures
A game gets you out the door way faster than "you should go for a walk"
How H3 works, down to how the bits are laid out, and how much PostGIS can do
Mobile location is mostly throwing out bad data
Writing the API contract first let four of us build at once without stepping on each other
Designing in Figma first meant we never had to rebuild a screen
What's next for Sidequest
Optional mood check-ins before and after a walk, so we can tell if it actually helps
Friends and private groups, not just one big feed
Leaderboards for every neighbourhood and city
Seasonal and themed quests, plus ones that need more than one person
Getting it approved on the app store and getting it onto real students' phones here at Western
Built With
- avfoundation
- core-location
- deno
- figma
- gemini
- h3
- ios
- mapkit
- metal
- node.js
- openstreetmap
- postgis
- postgresql
- supabase
- swift
- swiftdata
- swiftui
- typescript
- vision
- xcode