Scrivio Interview library
LeadershipPrincipal6 min read · updated 13 November 2026

A ride-hailing company pays a mapping vendor per routing and ETA call. At 30 million calls a day the bill is a large share of infrastructure cost, and ETA errors in some cities cause poor matches and fare disputes.

As the senior technical leader, how do you decide whether to build an in-house routing and ETA platform, keep the mapping vendor, or combine the two?

I would quantify both sides first: the vendor's price per call times expected growth, against the team, map data licensing, servers and years of tuning an in-house engine needs, and cut cost immediately with ETA caching, fewer routing calls and renegotiation. Because ETA accuracy drives matching and pricing, and our own GPS traces are data a vendor cannot use for us, I would own the ETA model, most likely through a hybrid: an open-source routing engine on open or licensed map data, an in-house ETA correction model trained on trip data, and the vendor kept as fallback and for geocoding, moved city by city with shadow comparison and the vendor contract kept as an exit path.

Why this question is asked

Build versus buy decisions are where senior technical leaders earn their keep, because both answers can be expensive mistakes. Building a routing platform takes years and a specialised team; staying with a vendor can mean a growing bill and accuracy we cannot improve. Interviewers ask this question to see whether a leader can decide with numbers, separate the parts of the problem, and reduce risk while deciding. In this answer, we will recap what routing and ETA are, quantify the costs, look at why ETA accuracy changes the decision, describe the hybrid most companies end up with, cut costs before building anything, and plan a safe city-by-city migration.

1A Quick Recap of Routing and ETA

Routing means finding a path through the road network between two points; an ETA, the estimated time of arrival, is how long that path will take now. A ride-hailing service uses them everywhere: to rank drivers for dispatch, to show the rider when the car will arrive, to quote a fare before the trip and to check the fare afterwards.

Underneath are three layers: map data, the road graph with turn restrictions and speeds; a routing engine that searches that graph quickly; and an ETA model that predicts real travel time from the route, time of day, traffic and local behaviour. The vendor currently supplies all three, and the decision does not have to be the same for each.

Step throughThe routing and ETA stack
  1. ETA modelpredicts real travel time; benefits most from our trip data
  2. Routing enginefast path search on the road graph
  3. Map data and road graphroads, turn rules, speeds; licensed or open
  4. Geocodingaddresses to coordinates; hard to build, often kept with a vendor

4 layers, from the top down. Step through them one at a time.

2Quantifying Both Sides

We start with numbers rather than opinions. On the vendor side: 30 million calls a day is about 11 billion a year. As an illustration, at half a cent per call that is roughly 55 million a year, and if trips grow 30 percent a year, the bill grows with them unless the price falls. On the build side: a team of perhaps 15 to 25 engineers for routing, map data and ETA modelling, map data licensing where open data is not good enough, servers to run routing at our call volume, and the two to three years it typically takes to match a mature vendor's quality in many cities.

The comparison should be over several years, include growth, and include risk: a vendor can raise prices, and an in-house platform can take longer than planned. With these numbers in front of finance and product, the discussion becomes concrete.

Three options compared
OptionCost profileETA accuracyMain risk
Keep the vendorPer call, grows with tripsVendor's model, no use of our tracesPrice rises, accuracy limits
Build everythingLarge team, years of tuningOurs to improveSlow, expensive, map quality
HybridModerate team, vendor as fallbackOur ETA model on our trip dataIntegration complexity

3Why ETA Accuracy Changes the Decision

Cost alone could argue for staying with the vendor. But ETA accuracy is not a commodity for us. Poor ETAs in some cities cause poor matches, sending a driver who is actually far away, and fare disputes when the quoted time and price do not match the trip. Every percentage point of ETA error affects rider wait times, driver earnings and support costs.

And we hold data no vendor can use on our behalf: GPS traces from millions of our own trips, showing how long pickups really take at a particular station entrance, how traffic behaves on Friday evenings in each district, and where drivers actually stop. An ETA model trained on that data can correct a generic routing estimate for our specific situation. That is a strong argument to own the ETA model, even if we keep licensing maps.

4The Hybrid Most Companies Choose

A common answer is a hybrid. We run an open-source routing engine, such as OSRM, Valhalla or GraphHopper, on OpenStreetMap data or licensed map data where open data is weak, to compute base routes and travel times. On top, an in-house ETA correction model, trained on our trip data, adjusts the base time for time of day, area and local patterns. The vendor stays for the parts that are hard to build and less central, such as geocoding addresses, and as a fallback when our engine is unavailable or a city is not yet covered.

This keeps the team smaller than a full build, puts our effort where our data gives an advantage, and keeps an exit in both directions.

5Cutting Cost Before Building Anything

Whatever we decide, we can cut the bill quickly. Many ETA calls repeat the same question: from this area to that area at this time of day. Caching ETAs per pair of grid cells and time bucket, for example H3 cells about 500 metres across and 15-minute buckets, can answer a large share of dispatch ranking calls without the vendor. Dispatch can shortlist candidates by distance and call routing only for the top few rather than all nearby drivers. And at 30 million calls a day, we have leverage to renegotiate volume pricing, especially with a credible alternative being built.

These steps often cut the bill by a large fraction within a quarter, which buys time to build carefully rather than in a hurry.

6Moving City by City With Shadow Comparison

We never switch all cities at once. For a first city, ideally one where vendor ETAs are worst, we run our engine in shadow: for every vendor call, we also compute our own ETA and log both, then compare each with the actual travel time from the trip. Only when our ETA error is lower, and match quality in an experiment is at least as good, do we switch that city, keeping the vendor as fallback.

Then the next city, and the next, with the same checks. The vendor contract is renegotiated to a smaller volume but kept as an exit path until our accuracy is proven across the cities that matter, so if the in-house platform disappoints, we can return without a crisis.

Step throughCity-by-city migration
  1. Cut cost nowETA cache, fewer calls, renegotiate
  2. Shadow our engine in one citylog vendor ETA, our ETA, actual time
  3. Our ETA error lower and match quality equal or better?
    YesSwitch the city, vendor as fallbackNoImprove the model, keep shadowing
  4. Repeat for the next cityworst vendor accuracy first
  5. Keep a reduced vendor contractexit path until accuracy is proven

5 steps in order. Play them, or step through them one at a time.

7Follow-up questions

How do you measure ETA accuracy fairly?

Compare each predicted ETA with the actual travel time recorded from the trip's GPS trace, for the same requests, and report error as both mean absolute error and the share of trips with large errors, say more than three minutes off, per city and time of day. Averages hide the bad cases that cause disputes, so the tail matters more than the mean.

Is OpenStreetMap good enough for a ride-hailing service?

In many cities it is very good, in some it lacks turn restrictions, new roads or access rules for pickup areas. The answer is per city: we measure routing quality against actual trips, and license map data or contribute fixes where open data is weak. That is one reason the migration goes city by city.

Who should own this decision?

The senior technical leader proposes it, but finance, product and operations must agree, because it commits a team for years and affects pricing and support. The proposal should state the costs, the expected accuracy gains, the milestones and the conditions under which we would stop.

8Conclusion

In this answer, we decided between building, buying or combining routing and ETA. We quantified the vendor bill against the cost of a team, map data, servers and years of tuning, and saw that ETA accuracy, powered by our own trip data, argues for owning the ETA model. The common choice is a hybrid: an open-source routing engine on open or licensed maps, an in-house ETA correction model and the vendor kept for geocoding and fallback. We cut cost first with caching, fewer calls and renegotiation, then migrate city by city with shadow comparison, keeping the vendor contract as an exit path.

What to say in the interviewAbout 90 seconds aloud

Open with

I would start by quantifying both sides over several years: the vendor's price per call times our growth, against a team of maybe 15 to 25 engineers, map data licensing, servers and the two or three years an in-house engine needs to match vendor quality.

Then, if they want more

Then I would separate the stack, because the answer is not the same for every layer. ETA accuracy drives matching and pricing, and our GPS traces from millions of trips are data a vendor cannot use for us, so I would want to own the ETA model even if we keep licensing maps.

That usually means a hybrid: an open-source routing engine like OSRM or Valhalla on open or licensed map data, an in-house ETA correction model trained on our trips, and the vendor kept for geocoding and as a fallback.

Before building anything, I would cut cost: cache ETAs per pair of grid cells and time bucket, call routing only for the top few candidates in dispatch, and renegotiate on volume.

Then I would move city by city, starting where vendor ETAs are worst, running our engine in shadow and comparing ETA error and match quality against actual trips, switching only when we are better, and keeping a reduced vendor contract as an exit path until accuracy is proven.

About this answer

Last updated
13 November 2026
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the official documentation for the version you use. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "As the senior technical leader, how do you decide whether to build an in-house routing...": https://scrivio-interview-library.netlify.app/architecture/system-design-problems/b180c1a1ff/