Oliver Revelo | Web Developer & Designer Logo
Contact

Case Study

Case Study: Fairpin — Equal Travel-Time Halfway Meetup Finder

by Oliver Revelo·
Case Study Fairpin Halfway Meetup Finder
Oliver Revelo

A full-stack engineering case study on Fairpin, a zero-signup cartographic meetup planner built with Next.js, Leaflet, OSRM road routing, and Supabase to help 2+ friends find the fairest halfway venue by actual commute time instead of straight-line distance.

The Challenge: Why Straight-Line Midpoints Fail Real Groups

Deciding where to meet friends across busy cities like Metro Manila almost always turns into an endless group chat debate. Existing "meet in the middle" calculators compute a simple straight-line geographic average between coordinates, which breaks down quickly in the real world:

  • Unequal Commute Times: Two pins 10 km apart geographically can differ by 2x in real travel time because of bridges, expressways, traffic corridors, and transport modes.
  • The Water & Bay Trap: A pure spherical centroid between coastal or bay-separated locations (such as Cavite/Olongapo and Makati/Taguig) frequently drops the "fairest" pin in the middle of Manila Bay instead of a reachable neighborhood.
  • Privacy & Group Consensus Friction: Nobody wants to share their exact home street in a public link or create an account just to vote on a coffee shop.

My Solution: Equal Travel-Time Cartographic Optimization

As the sole designer and full-stack Next.js developer behind Fairpin, I built a zero-signup meetup studio focused on true travel-time equity and instant collaboration:

  • By-Time Fairness Engine (Default): Instead of optimizing only for raw kilometers, Fairpin defaults to equalizing arrival duration across 2+ participants using OSRM road-network speeds and distinct Time Fair % vs. Dist % metrics.
  • Mixed Per-Person Commute Modes & Priority Weights: Each friend can set their own mode (Drive, Transit, Bike, or Walk) plus a 1x / 1.5x / 2x priority multiplier so groups with mixed commuters or tight schedules stay balanced.
  • Automatic Water Land-Snap: When a solved coordinate lands over bays or rivers, Fairpin automatically snaps it onto the nearest reachable road/land anchor before searching for spots.
  • Smart Google Maps Link & Privacy Blur: Pasting full Google Maps URLs or mobile maps.app.goo.gl short links resolves and drops a pin immediately, while optional ±500m Privacy Blur hides exact home streets in shareable links.

How the 4 Midpoint Algorithms Compare

Different meetups optimize for different goals, so Fairpin lets groups switch between four mathematical solvers in one click:

Algorithm Mode What It Optimizes Best Use Case
By Time (Default) Equalizes estimated minutes across road modes Mixed drivers, commuters, and traffic-aware meetups
Balanced Minimizes route distance spread across pins Two-to-six drivers wanting similar mileage
Centroid Spherical geographic center on the globe Quick visual baseline for evenly spread groups
Geometric Median Minimizes total combined group travel distance Larger groups where reducing total group travel wins

Fast Spot Discovery, PH Transit Hubs & Live Group Voting

Once a fair center is locked, Fairpin surfaces verified nearby venues across Landmarks, Cafes, Food, Parks, and Transit Hubs—designed for instant group decision-making without paying heavy per-tile API bills:

  • Metro Manila PH Hub Dataset & Vibe Filters: Curated LRT/MRT stations and central malls (Ortigas, Cubao, Makati, Taft, BGC) are merged near the center with PH Hub and All ≤ 30m fairness badges, plus filters for Wi-Fi, Malls, Late/24h, and Outdoor spots.
  • Zero-Cost Watermark-Free Cartography: After testing commercial tile APIs against real viral traffic, I engineered the map canvas on watermark-free Esri Studio Light, Streets, Terrain, and OpenStreetMap layers plus parallel Overpass/OSRM caching—keeping hosting sustainable at $0 while loading nearby spots in roughly 2 seconds.
  • Real-Time Collaborative Voting Rooms (/r/CODE): Groups can spin up a persistent Supabase-backed voting room, compare custom A/B venue picks side-by-side by road ETA, upvote winners, lock the final meetup spot, and open Google Maps or Klook directions with one click—complete with dynamic /api/og link preview cards.

Technology Stack & Architecture

Fairpin pairs clean cartographic UI design with fast serverless API routes:

  • Framework & Language: Next.js 15 (App Router), React 19, and strict TypeScript for SSR metadata, dynamic OpenGraph generation, and SEO routes (/how-it-works, /llms.txt).
  • Interactive Mapping & Routing: Leaflet with custom Lucide vector markers, animated route flows, collision-free distance pills, OSRM road-network solver, and OpenStreetMap Overpass/Photon/Nominatim endpoints.
  • Realtime Rooms & Persistence: Supabase PostgreSQL backing live /r/CODE voting rooms alongside browser localStorage shortcuts for zero-account friction.
  • Styling & Hosting: Tailwind CSS with a custom Swiss-editorial color system hosted on Vercel.

Frequently Asked Questions

How is Fairpin different from regular halfway point websites?

Regular midpoint tools average straight-line coordinates, which often forces one person to travel twice as long or places pins in bodies of water. Fairpin solves by actual travel time across Drive, Transit, Bike, and Walk modes and snaps midpoints safely onto drivable roads.

Can I use Fairpin for Metro Manila meetups with friends taking LRT or MRT?

Yes. Fairpin lets commuters pick Transit mode individually and includes built-in Metro Manila LRT/MRT stations, central malls, and vibe filters (Wi-Fi, Malls, Late/24h) directly inside the Spots panel.

Does Fairpin require an account or expose my home address?

No signup is required. Before creating a share link or live voting room, you can toggle ±500m Privacy Blur so your exact street stays hidden while group fairness math remains accurate.

Try the live app at fairpin.vercel.app or explore more builds on my web development portfolio. Need a custom interactive map tool, SaaS MVP, or API integration built for your business? Let's talk about your project.

Oliver Revelo

About the Author

Hi! I'm Oliver Revelo, a freelance web developer and designer based in Rizal, Philippines. I specialize in building high-performance websites that help businesses grow. Ready to start your next project? Contact me today and let's talk!

Share this article:

Need help with this?

I offer professional web development services for Philippine businesses. Let's talk about your project.