Skip to content
PRP.dev
ES— Leer esta página en español
All case studies

Leading national health insurer

Benefits on the map, from phone to coupon

A mobile-first benefits platform built with Next.js and a map that clusters results, handles businesses sharing a building and stays in sync with the list.

Role
Senior Frontend Developer at Quadion Tech
Stack
  • Next.js
  • React
  • TypeScript
  • Google Maps
  • Mobile-first

In 30 seconds

Problem

Members needed to find and redeem benefits at partner businesses from their phones, with many results on the map and businesses sharing the same building.

Solution

I built the benefits platform in Next.js (search, plus a list and map kept in sync) and solved the map's hard cases.

Impact

A map that handles density and shared locations well, and a complete journey from search to coupon designed for the phone.

Key results

solved on the map (shared locations, sync and density)
3 hard cases
from search to discount coupon on the phone
Mobile-first

Context

For the same health insurer as the member portal, I used Next.js to build the platform where members find and redeem benefits at partner businesses. They search by province and city or by their current location, and results appear in a list and on a map powered by Google Maps. The design is mobile-first.

The challenge: a map you can use with your thumb

A map with a few pins is easy. The problems show up with real data: businesses sharing an address, many results close together, and two views (list and map) that have to show the same thing.

The two behaviors of the mapLeft: a pin for a single business, Óptica Norte, opens a card with 20% off, 1.2 km away. Right: several businesses in the same building share a single pin with the count; tapping it opens a carousel of cards, starting with Café Central with 15% off, 3.4 km away. At the top, a cluster with the number 12 groups nearby pins.One pin: cardMapList1220%Óptica Norte20% off1.2 km away · See detailsSame building: carouselMapList12×4Café Central15% off3.4 km away · See details‹ 1 of 4 ›
The two behaviors of the map, with fictional businesses: a card for one pin and a carousel for a shared location.

What I solved

  • Shared locations. When several businesses are in the same building or mall, their pins overlap and can’t be tapped separately. I grouped them by coordinates: the map shows a single pin and, instead of a single card, opens a carousel with every business at that place.
  • Synced list and map. Both views share the selected business. From any business in the list, “Show on map” takes you straight to its pin on the map with its card open.
  • Density. With many results, pins merge into clusters showing the count, and members can move the map and search this area.

Grouping by coordinates, in its simplest form:

const groups = businesses.reduce((acc, b) => {
  const key = `${b.lat},${b.lng}`
  ;(acc[key] ||= []).push(b)
  return acc
}, {})

The member’s journey

The journey ends with redemption: from the benefit details, members open a QR code and get their discount coupon.

The member's journeyFour steps: search on the map or the list, see the business and branch details, open the QR code and get the discount coupon ready to use.SearchMap or listDetailsBusiness and branchQR codeThe QR opensCouponDiscount ready
The member's journey, from search to coupon.

Results

  • Mobile experience: a map that handles density and shared locations well.
  • Complete journey: from search to coupon without leaving the phone.

Could your team use this kind of experience?

I'm looking for a long-term Senior Frontend or Full Stack role. Let's talk.

Get in touch