How to find businesses near each other: pairs, clusters and the gaps between them
Clinics with a pharmacy at the door, cafes beside gyms, car dealers on one strip. How to find which businesses sit together, count the pairs and spot the ones alone.
Part of the guide Location intelligence automation
To find businesses near each other, take every place of one kind in an area, then search around each of them for the other kind within a short distance, and record how many were found and how far away the nearest one is. The result is a list of pairs, such as each clinic with the pharmacies within 200 m, from which you can see where the two kinds cluster, which ones stand alone, and where a new business would complete a pair that customers already expect.
This is for anyone who sells to, supplies or competes with businesses that like company: pharmaceutical and medical sales teams, wholesalers, franchise developers, landlords filling a parade of shops, and analysts studying a city. It covers why some businesses gather, how to measure it, how to read the numbers, a made-up example in Bangkok, the traps, and a flow that keeps the picture current.
Why some businesses gather
Shops and services sit together for a few reasons, and knowing which one is at work tells you what the cluster means.
- One visit, two needs. A patient leaves a clinic with a prescription; a pharmacy by the door fills it. Someone finishes a class and wants a coffee or a smoothie.
- Comparison shopping. Car dealers, furniture stores and wedding shops line up on the same road because buyers want to compare in one trip.
- A shared anchor. A hospital, a university or a station draws people, and many kinds of business settle around it for the same crowd.
- Zoning and rent. Sometimes businesses sit together only because that is where the rules allow them or the units are cheap. Those clusters say little about customers.
How to measure it, step by step
- Pick the first kind, the one you care about most: say medical clinics in a city.
- Find every place of that kind in the area.
- Around each of them, search for the second kind within a short walk, such as 200 m for a pharmacy, or 500 m for a cafe near a gym.
- Keep each first place with the count of the second kind around it, the name of the nearest one and its distance.
- Sort or map the list: places with several neighbours of the other kind form the clusters; those with none are the lone ones.
Two choices change the answer more than any other. The distance should match how far a customer will really walk between the two, which is shorter than most people guess. And the kinds must be named precisely: a pharmacy counter inside a supermarket and a stand-alone pharmacy behave differently.
Reading the numbers
A count of zero, one or several tells three different stories.
- Zero within a short walk is either a gap, where a newcomer would be welcome, or a sign that the first business is not the kind that draws the second. Look at a few by hand before deciding.
- One means a pair. For a supplier, the two are often worth calling together; for a newcomer, the pair may already have the trade sewn up.
- Several means a cluster. It shows where demand sits and also where competition is fiercest.
Keep the totals in proportion with what is in the area. xMap's places database lists 329 medical clinics and 519 pharmacies within 10 km of the centre of Toronto, and 297 medical clinics and 346 pharmacies within 10 km of the centre of Sydney, November 2026. In both cities there are more pharmacies than clinics, so finding a pharmacy near most clinics is expected; the interesting cases are the clinics with none.
A made-up example in Bangkok
The figures here are invented to show the method. A company that supplies small pharmacies wants to know which clinics in two districts of Bangkok have no pharmacy close by, to pitch a pharmacy owner on opening beside them, and which have several, to plan visits to many accounts in one stop.
| District A | District B | |
|---|---|---|
| Clinics found | 60 | 45 |
| Clinics with no pharmacy within 200 m | 9 | 21 |
| Clinics with three or more pharmacies within 200 m | 14 | 3 |
| Nearest pharmacy, median distance | About 90 m | About 260 m |
Made-up results for two districts of Bangkok.
District A is a dense medical strip: rep visits there can cover several pharmacies in one walk. District B has 21 clinics without a pharmacy in reach, and those are the addresses to show a pharmacy owner looking for a new branch. The same list, joined to the company's own customers, also shows which of those pharmacies it already supplies.
Traps to watch for
- A radius too wide. At 1 km almost everything in a city centre is near everything else, and the pairs stop meaning anything.
- Counting the same building twice. A medical centre with ten doctors may be listed as several clinics. Remove duplicates before counting pairs.
- Mistaking rent for demand. A cluster on a cheap industrial road may be there for the units, not the customers.
- Reading one day. Places open and close. Running the search again each month shows which pairs are new and which have broken up.
Keeping it current with an AI employee
This is one of the jobs described in the location intelligence automation guide: a flow that searches, pairs and reports on its own.
- Schedule: the first Monday of each month.
- Area of interest: the city or the districts to look at.
- Nearby places: every medical clinic in the area.
- Remove duplicates: one entry per clinic.
- Nearby places again, set to pass on each incoming place with counts: pharmacies within 200 m of each clinic, with the nearest one and its distance.
- Sort and limit: clinics with no pharmacy first, then Show on a map and Email.
Each month the inbox gets the clinics standing alone at the top, the clusters below with their pharmacy counts, and a map that shows both. Change the two kinds and the distance, and the same flow pairs gyms with cafes or offices with sandwich shops. Templates to start from: independent pharmacies to open, competitor density around each site and healthy food partners near my gyms.
Questions
What distance should I use to pair two businesses?
The distance a customer will walk from one to the other in the same visit, usually a few hundred metres at most. In a car-led suburb you can stretch it, but test a few pairs by hand first.
Can I search around my own list of places instead?
Yes. Upload your stores, clients or candidate sites as a table and search around each row for the kind of business you want to pair it with.
How do I find places that have nothing of the other kind nearby?
Keep the count for each place and filter or sort for the ones with zero. Those are the lone places, often the most useful list of all.
Does a cluster mean the area is good for my business?
It means many similar or related businesses chose it. That can show strong demand or simply cheap rent and fierce rivals, so look at ratings and openings before deciding.
Templates that do this
Read next
More on business and places data · Every article · Templates