← Back to projects//Case Study

Xplore

Location-based travel RPG concept built around spatial verification.

Domain

Travel RPG

Core data

Spatial queries

Flow

Event-driven

GoPostgreSQLPostGISEvent-DrivenGPS Verification
01Context

Xplore explores how travel discovery can feel more engaging by combining real-world location verification with RPG-style progression.

02Problem

Location-based products need to balance accuracy, battery usage, anti-cheat concerns, and a reward system that does not block the check-in experience.

03Architecture
1

Discovery API

Returns nearby locations using indexed spatial queries.

2

Verification Service

Checks submitted GPS coordinates against allowed location radius.

3

Event Stream

Emits verified check-in events for downstream reward handling.

4

Progression Engine

Applies XP, levels, and achievement rules without blocking verification.

04Approach
  • Store locations with PostGIS geometry types and proximity indexes.
  • Verify user check-ins against distance thresholds rather than exact coordinate equality.
  • Treat verification and reward processing as separate steps connected by events.
  • Keep gamification rules isolated so XP, achievements, and levels can evolve independently.
05Key Decisions

Use PostGIS for location primitives

Spatial queries are core to the product. PostGIS provides the right indexing and distance operations without inventing custom coordinate logic.

Decouple check-in from reward processing

A verified check-in should return quickly. Reward calculation can happen asynchronously so gamification rules stay flexible.

Design around tolerance, not exact GPS matches

Mobile GPS is noisy. Radius-based verification creates a more realistic user experience than exact coordinate matching.

06Trade-offs

Verification is probabilistic

GPS radius checks improve usability, but they require additional thinking around spoofing and trust signals.

Events add eventual consistency

Rewards may appear after verification instead of immediately, but the flow stays more resilient and extensible.

07Lessons Learned
  • Spatial products need data modeling decisions early, not as an afterthought.
  • Gamification is easier to evolve when it is separated from the core verification flow.
  • User experience and correctness need to meet in the middle for real-world GPS features.