mapbench
Interactive toolDistance & Bearing

Closest Facility Finder

Compare distances from one origin to multiple candidate facilities using matrix-style measurement.

By Aryan Khan, Founder & Editor · Updated October 2026

✓ No account required✓ Worldwide✓ No installation required
Tool workspace
Enter your inputs and review the result
Loading tool…

For example, from downtown Chicago the candidates Oak Park (approx. 8.0 miles), Evanston (11.7 miles) and Gary (24.5 miles) rank Oak Park first — the table makes the nearest answer a fact, not a feeling.

Simple workflow

How to use Closest Facility Finder

“Which is closest?” sounds simple until the candidate list reaches double figures. Two steps:

The Closest Facility Finder compares one origin against several candidate facilities at once and ranks them by straight-line distance. Add your starting point and the candidates — stores, depots, clinics, warehouses — and read a table that names the nearest, instead of measuring each pair by hand and losing track.

  1. 1Add origin and candidate places.
  2. 2Read the distance table.

What people use Closest Facility Finder for

1. Store and branch assignment

Assign each customer or territory to its genuinely nearest branch. The ranking table is the audit trail behind the assignment when someone asks why an account went to one store and not another.

2. Depot and warehouse choice

Choosing which depot serves a new contract starts with distance from the customer's sites. Rank the candidates here, then validate the winner's road journey with the Driving Distance Calculator.

3. Public service planning

Clinics, libraries and relief points are sited for the populations they serve. A candidate ranking exposes the neighbourhoods every candidate is far from — the coverage gaps a map of pins alone can hide.

4. Franchise territory checks

A proposed franchise location measured against every existing store shows instantly whether it cannibalises a neighbour or fills a genuine gap.

Worked examples

Example · United States

Origin: downtown Chicago (41.8781, −87.6298). Candidates: Oak Park approx. 8.0 miles (12.8 km), Evanston 11.7 miles (18.8 km), Gary, Indiana 24.5 miles (39.4 km). The finder ranks them in that order — and just as usefully, shows the gap between first and second is small enough to deserve a road check.

Example · Europe

Origin: central Paris (48.8566, 2.3522). Candidates: Saint-Denis approx. 8.9 km (5.5 mi), Orly 12.7 km (7.9 mi), Versailles 17.4 km (10.8 mi). The nearest answer (Saint-Denis) is also the one intuition picks — the tool's value is proving it with numbers a colleague can re-run.

Nearest facility by straight-line distance is a fast shortlist, not always the fastest response

This tool is useful when several depots, clinics, warehouses or service locations could handle the same destination. Straight-line distance quickly identifies the geographically closest candidates and is especially useful for large batches where a full routing call for every pair would be expensive or slow.

The nearest point on the map can still be slower by road because of access restrictions, rivers, mountain passes or network layout. For dispatch, emergency planning or strict service-level decisions, validate the shortlist with road travel time before assigning the job.

How to interpret the result

The most common errors come from using a correct result to answer the wrong geographic question. Keep these points in mind for Closest Facility Finder:

  • Always confirm which distance you need before quoting one: straight-line for physical questions, road distance for driving, and network time for schedules. The three can differ by half again in mountainous or island geography, and quoting the wrong one is the most common distance mistake in reports.
  • Remember that bearings are true-north by default. If you are transferring a bearing to a magnetic compass, add (or subtract) your local declination — it exceeds 10° in many inhabited regions and flips hemispheres of behaviour.

Limits & appropriate use

The honest limits here are about category, not quality: great-circle math is near-exact, but it answers 'how far over the surface', not 'how far as driven, flown or walked'. Airline distances follow airways and winds; odometers follow detours; hikers follow switchbacks. Quoting a straight-line number into a fuel budget is the classic misuse, which is why the tools keep the ladder visible — crow-flies, road, time — and label each rung. A second limit is definitional: 'city to city' means mapped centre to mapped centre, and a suburb-to-airport question is a different measurement wearing the same sentence.

Within those bounds the numbers are durable: reproducible from coordinates alone, stable across tools that use the same radius convention, and accurate to a fraction of a percent of geodetic truth. The escalation path is short and rarely needed — ellipsoidal libraries (Karney's algorithms) for survey-grade millimetres, the routing engine for network truth, and the airline's schedule for invoice truth. Knowing which authority owns which number is the entire craft of distance literacy.

  • Survey-grade millimetres → ellipsoidal geodesic libraries, not sphere math.
  • Fuel and schedule planning → road routing plus your congestion buffer.
  • Airline invoicing → carrier distance tables (airways ≠ great circles).

Data & methodology

The matrix workspace compares selected points using spherical distances or a provider network matrix. Its overall nearest pair is not automatically an origin-to-facilities ranking.

For source details, licences and model limitations, see Data Sources and Methodology.

Key terms worth knowing

Initial bearing
Compass angle from true north at departure along a great circle.
Geodesic
The ellipsoid-true shortest path; haversine approximates it within ~0.3%.

Editorial guidance: MapBench explains the method and limitations so the tool can be used as a transparent reference, not as a black-box answer. For legal boundaries, safety-critical routing, surveying, engineering, regulated decisions or official statistics, verify the result with the responsible authority or a qualified professional.

Category: Distance & Bearing. Results are intended for everyday analysis and planning unless a page explicitly states otherwise.

Method, assumptions & limits

This tool’s method
The matrix workspace compares selected points using spherical distances or a provider network matrix. Its overall nearest pair is not automatically an origin-to-facilities ranking.
Before relying on the answer
Keep the endpoints and measurement mode fixed when comparing results. A surface separation, a compass bearing and a road distance are different outputs.
What the result cannot establish
A rounded coordinate or a city-centre search changes the endpoints. Do not interpret displayed decimal places as survey accuracy.

Coverage: Worldwide. Search, basemap and external data requests may use third-party services; browser-based does not mean every operation is offline. Read the source and licence notes, calculation methodology and privacy policy. If a result looks inconsistent, report a correction with the inputs and mode used.

Common questions

Frequently asked questions

Clear answers about the calculation, accuracy and appropriate use.

Road nearest?

Matrix here is crow-flies; use driving distance for road nearest.

How accurate is this distance?

The geometric calculation is suitable for planning and comparison, but the answer is only as accurate as the coordinates you provide. Road, terrain and legal distances can differ.

Can I use coordinates instead of place names?

Yes. Where the tool accepts locations, you can paste latitude and longitude directly for a more explicit input.

Why can this differ from Google Maps or a road route?

Straight-line and geodesic tools measure geometry on Earth, while road-routing tools follow an actual transport network. They answer different questions.

Is the closest by distance also the fastest to reach?

Not always. Rivers, one-way systems and missing junctions can make the second-nearest the faster journey. Use this ranking to shortlist, then check the top two or three by road.

How many candidates can I compare?

The tool is built for a practical candidate list — the stores, depots or sites genuinely in contention — measured matrix-style from your one origin. For very large point sets, a GIS workflow is the better instrument.

Can I export the table?

Yes — the result table can be taken out for planning documents and spreadsheets, so the ranking survives the meeting it was made for.

Does it work with coordinates as well as names?

Yes. Candidates and the origin can be set by search, by clicking the map, or by coordinates — the reliable route for rural sites and unnamed facilities.

What if two candidates tie?

Exact ties are rare with real coordinates; the table shows both distances so a tie is visible rather than hidden by rounding. Break it with the road check.

Straight-line or road distance?

Straight-line (great-circle) — the consistent screening measure. The tool's job is ranking many candidates fairly; road validation of the winner happens in the routing tools.

Can I use it for people, not facilities?

The geometry does not care what the points are: nearest relative, nearest crew base or nearest meeting town all rank the same way.

Related tools and resources

For every pair among a set — not just from one origin — the Distance Matrix Calculator builds the full table; for a single pair measured carefully, use Distance Between Two Places; and for the store-spacing version of this question, see the Competitor Distance Map.

Keep measuring

More free tools

How this page is maintained

Sources, methodology & editorial trust

Data & privacy
  • ✓ Browser-first processing where supported
  • ✓ External sources are documented
  • ✓ No account required for public tools
  • ✓ Review data sources
Method & review

Calculations are documented with their assumptions, limitations and source context rather than presented as unexplained answers.

Editor & category

Reviewed and maintained by Aryan Khan, Founder & Editor of MapBench.

Distance & Bearing
Browse all Distance & Bearing →

Part of our distance calculators hub

Closest Facility Finder sits in the distance calculators cluster, alongside 28 other tools that answer neighbouring questions with different methods or datasets.

You may also need

When this answer is only part of the job, these clusters cover the next step.

Read the guide behind this tool

Distance Calculation: Haversine, Geodesics & When It Matters — Why flat map arithmetic fails over large distances, what the haversine formula does, and when a full ellipsoidal geodesic is the better choice.