The Algorithm That Decides Who Gets Into the Directory (And Why It Matters When Water Is Rising)

Projects· 6 min read

The Algorithm That Decides Who Gets Into the Directory (And Why It Matters When Water Is Rising)

There’s a specific moment when a service directory fails you in the worst possible way.

It’s not when you search for a restaurant and the top result turns out mediocre. It’s when you have a burst pipe at 2am, your kitchen floor already has two inches of water, and the first plumber you find online doesn’t pick up. The second charges triple because they know you’re desperate. The third simply doesn’t exist.

That’s what I wanted to avoid when I built find-emergency-plumber.com. Not another listing aggregator. A directory where provider quality isn’t accidental.

The Real Problem with Service Directories

Most service directories share the same model: mass data capture, publish without filtering, charge providers to appear or per lead. The directory’s incentive isn’t aligned with the user. It’s aligned with the paying provider.

HomeAdvisor, Angi, Thumbtack — they all work this way. The result is familiar: outdated listings, closed businesses still appearing, inflated scores, purchased reviews.

In emergencies, that model has real consequences.

How find-emergency-plumber.com’s Quality System Works

The directory covers 1,251+ verified 24/7 emergency plumbing services across 90 US cities. This isn’t randomly scraped data. It goes through an ETL pipeline that processes Google Places data and applies a quality scoring algorithm before any business appears in the directory.

What does that algorithm evaluate?

1. Real 24/7 Availability

Claiming 24/7 service is easy. Verifying it isn’t. The system processes structured opening hours for each provider and cross-references them with response patterns reported in reviews. A plumber claiming overnight availability but accumulating reviews mentioning unavailability outside business hours scores lower.

This is technically significant: Supabase stores hours in structured fields that allow complex queries. Not free text. A verifiable data point.

[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

2. Review Volume and Trend

A perfect score with five reviews is not the same as a perfect score with two hundred. The algorithm weights both dimensions: average rating and review volume. A business with a perfect rating and three opinions gives less statistical confidence than one with a very good rating and a hundred opinions.

Recent trend matters too. A provider who was excellent three years ago but has had declining reviews lately shouldn’t rank as prominently as one consistently well-rated.

3. Deduplication and Data Consistency

The pipeline includes a deduplication process. The same business can appear in Google Places with slight variations in name, address, or phone number. Without deduplication, the directory artificially inflates the number of available options when there are actually fewer.

This seems like a minor technical detail. It isn’t. In an emergency, calling the same number three times because it appears three times under different names in the directory is time you don’t have.

How to Vet an Emergency Plumber Yourself

The algorithm does part of the work. But when you’re on the phone at 3am, here are the signals to look for:

Before You Call

Verify the phone number works. Sounds obvious. It’s not. Many listings in generic directories have outdated numbers. If you have a few minutes, search the number directly on Google to confirm it appears associated with that business across multiple sources.

Look at recent review dates. Not the overall score. The last three or four reviews. If the most recent is eight months old, something has changed at that business.

Look for specific emergency mentions. Reviews that say “arrived in 45 minutes at 2am” are infinitely more useful than ones that say “good service”.

When You Call

Three questions to ask before confirming:

  1. How long until you arrive? An honest answer has a range. “Between 30 and 60 minutes” is credible. “Right away” without specifics is a red flag.
  2. Can you give a price range estimate before arriving? Not an exact price — impossible without seeing the problem. But a serious professional can tell you what factors affect cost and give a rough range. One who can’t or won’t do this tends to charge whatever they decide on arrival.
  3. Do you have an active license and insurance? It varies by US state, but any professional plumber should be able to answer this without hesitation.

Red Flags You Shouldn’t Ignore

→ They demand full cash payment before starting work
→ They have no verifiable online presence beyond the directory where you found them
→ The company has multiple phone numbers in different cities under the same generic name
→ They can’t name their license number when asked
→ They significantly raise the price once they’re in your house and the water is still running

Why Directory Quality Control Is the Real Product

This is something I had to learn the hard way at the start of the project.

I thought the product was the technology: the 1,100+ programmatically generated pages, the IndexNow pipeline, the Next.js and Supabase architecture. And technically, all of that matters.

But the real product is trust. The ability for someone with a midnight emergency to land on the directory and find options that actually work.

SEO brings traffic. Directory quality converts that traffic into users who return, who recommend, who trust. Without that second part, Google rankings are irrelevant.

In 2026, the difference between a service directory that works and one that doesn’t isn’t who has more listings. It’s who has better mechanisms for removing the bad ones.

What’s Next

The current scoring algorithm is a solid starting point, but there are two improvements on the roadmap:

Active availability verification. Instead of processing historical Google Places data, make automated periodic calls to confirm numbers are still active and businesses still operating. More complex to implement but eliminates dead listings much faster.

Emergency response signals. Analyze the average response time providers self-report versus what appears in verified reviews. The gap between what they claim and what they actually do is the most honest data point you can have about an emergency provider.

Final takeaway: Next time you need an emergency service, don’t trust the first Google result. Trust what you can verify. And save the number of the one that actually works — before you really need it.

Brian Mena

Brian Mena

Software engineer building profitable digital products: SaaS, directories and AI agents. All from scratch, all in production.

LinkedIn