Tutorial

How to Model Service Areas and Travel Zones in a Marketplace

How to store provider coverage as queryable data, separate service areas from travel zones, and price travel fees without slowing checkout.

A service area answers one question: will a provider travel to this address? Travel zones answer a second: what does that trip cost, and how is the job scheduled? Modeling service areas and travel zones in a local service marketplace is a data problem before it is a design problem, because coverage has to be queryable, versionable and cheap to test at checkout.

What is a service area in a local service marketplace?

A service area is the geography a provider has agreed to travel to, stored as machine-readable data such as a radius, a polygon or a list of postcodes, so the platform can test any customer address against it in milliseconds.

Providers describe coverage in human terms. "Twenty minutes from the shop" or "anywhere in the northern suburbs" is perfectly clear to a dispatcher and useless to a database. The modeling work is translating that sentence into something a query can evaluate.

That translation starts with geocoding, which means converting a street address into latitude and longitude coordinates. Once every address on both sides of the marketplace is a coordinate pair, coverage becomes a geometry question: is this point inside that shape, or within that distance?

Keep both versions. Store the human sentence for the provider profile and the tested geometry for matching. When a provider disputes a declined job, you will want to show them exactly which shape was used and when it was last updated.

Should coverage be a radius, a polygon, or a postcode list?

Use a radius for a fast first version, a drive-time polygon when travel time matters, and a postcode or ZIP list when local density varies. Most marketplaces ship a radius, then move to polygons within roughly six to twelve months.

A radius is a circle drawn from a fixed point. It is trivial to compute, easy to explain, and wrong in predictable ways: a provider two miles away across a river may be an hour out, while one four miles down a motorway is ten minutes. A polygon is a closed shape made of straight edges, usually traced around a real boundary such as a coastline, a ring road or a council line. An isochrone is a polygon generated by a routing engine from travel time, which makes it the most faithful option for urban coverage.

A postcode, or ZIP code in the US, is a small postal unit that works as a rough proxy for a neighborhood. In dense cities those units are tiny enough to be useful; in rural areas one postcode can cover forty miles.

ModelWhat it storesAccuracyMaintenance effortFits
RadiusA center point and a distanceLow to medium, ignores roads and waterLow, one number per providerSingle-site providers, sparse suburbs
Postcode or ZIP listAn explicit set of postal areasMedium, sharp at boundaries, blunt inside themHigh, lists drift as providers flexDense cities with small postal areas
Drive-time polygonAn isochrone from a routing engineHigh, reflects roads and traffic assumptionsMedium, regenerate on a scheduleUrban markets where ten minutes varies wildly
HybridA polygon plus a small exception listHigh, with controlled overrides at the edgeMedium, needs a review routineMost marketplaces past their first year

In practice the hybrid wins. A main polygon covers the honest answer, and an exception list of two or three dozen postcodes handles the edge cases that would otherwise generate support tickets. Boundary customers are the loudest ones, and a manual override is cheaper than a better routing model.

How do travel zones differ from service areas?

Service areas describe where a provider will go. Travel zones are pricing and operations units inside that area, used to set travel fees, minimum job values and arrival windows. A provider can have one service area and several travel zones.

Think of travel zones as rings. Zone 1 is the core around a base location, zone 2 is the next band out, zone 3 is the edge of coverage. A job is priced by which ring the customer address falls into, not by the exact mileage of the trip.

Zones should be versioned, because fees change and old quotes must stay reproducible. Store a zone definition table with an effective date, and attach the zone version to every quote you issue. When someone queries an eighteen-month-old booking, the pricing should still resolve exactly as it did.

How should travel fees be calculated across zones?

Charge travel by zone band, not exact distance: a base fee for the core, higher fees for outer bands, and a hard cutoff at the service area edge. Show the fee before booking.

Three inputs usually drive the number: the zone band, the job value, and the time of day. A flat fee per zone is easiest to explain and easiest to dispute. A distance-based fee feels fairer to customers but produces odd totals, so round to whole units and write the rounding rule down.

Cap the travel component. As a rough estimate, keeping travel at around 10 to 15% of total job value stops the fee from dominating a small job and pushing customers to abandon. For low-value jobs in far zones, a minimum job value is a cleaner lever than a punitive travel fee.

How do you check coverage at checkout without adding latency?

Precompute and store each provider's coverage as a geometry or postcode set, index it spatially, and cache the lookup by address. A coverage check should return in under roughly 150 milliseconds; anything slower belongs in a background job.

A spatial index is a data structure that answers "which shapes contain this point" without testing every shape in the table. PostGIS, MongoDB and several hosted geo services all provide one. For postcode-based coverage, a plain lookup table keyed on the postal code is faster still and avoids geometry math entirely.

Decide what happens when the check fails or times out. Blocking the booking is the wrong default. Fall back to accepting the request for manual review, tag it, and let an operator confirm within a stated window.

What to build in the first release

The order below keeps the risky parts testable early and avoids building pricing twice.

  1. Geocode every address at write time, not query time, and store the coordinates alongside the address record.
  2. Ship a radius model with one distance field per provider, plus a global default for new providers.
  3. Add a postcode-to-zone lookup table so zone assignment needs no geometry at all.
  4. Version zone definitions and attach the version to quotes and bookings.
  5. Expose a single coverage endpoint that returns yes or no, a zone, and a fee, so checkout never talks to the geometry layer directly.
  6. Log every check with its inputs, its result and the rule version used.

That endpoint is the piece worth designing carefully. It becomes the contract between the geography data and everything downstream: checkout, dispatch, notifications and reporting. If you are scoping this alongside a wider platform build, our marketplace development work covers the surrounding pieces such as listings, matching and payments.

Step five usually matters more than the accuracy of step two. A marketplace with a crude radius and a clean coverage endpoint can improve its geography later without touching checkout. The reverse is expensive.

How do you stop coverage data from going stale?

Set a review cadence, let providers edit their own coverage with limits, log every change, and flag addresses that repeatedly fail checks. Stale coverage usually shows up as declined jobs and support tickets, not as obvious data errors.

Coverage rots for boring reasons. A provider moves premises, buys a second van, stops taking jobs across a bridge because of roadworks. None of that reaches the database unless someone asks, and a short in-app prompt every quarter asking providers to confirm or adjust their area recovers most of it.

Watch two numbers: the share of searches that return no provider, and the share of accepted jobs later cancelled for distance reasons. If the first climbs, coverage is too tight. If the second climbs, it is too loose or the zones are underpriced. Both are cheaper to correct from a dashboard than from a complaint queue.

Frequently asked questions

What is a travel zone in a local service marketplace?

A travel zone is a pricing and operations band inside a provider's service area, used to set travel fees, minimum job values and arrival windows. It is internal to the platform, so customers see a fee rather than a zone number.

Should service area checks use straight-line distance or drive time?

Straight-line distance is cheap and predictable but wrong near rivers, motorways and one-way systems. Drive time is more accurate and costs more per lookup, so most marketplaces build coverage from drive time once and then check it against a cached shape at checkout.

How many travel zones should a marketplace have?

Most local service marketplaces settle on three to five bands, which is enough to price distance fairly without making the fee hard to explain. Going past about six bands rarely changes customer behavior and adds a mapping job every time a provider's coverage changes.

What happens when a customer falls outside every service area?

Capture the request anyway, tag it as out of area, and route it to an operator who can approve it manually or recruit a provider nearby. Blocking the booking throws away demand data you need to decide where to expand coverage next.

Back to blog