Seven questions, one search URL: how our 3 Minute Office Finder works
I look after the code at spacebly, a London flexible workspace marketplace. Most people who look for an office don't want to learn a search page with 20 filters. They want to describe their team and see what fits. That's
I look after the code at spacebly, a London flexible workspace marketplace. Most people who look for an office don't want to learn a search page with 20 filters. They want to describe their team and see what fits. That's what the 3 Minute Office Finder is for: seven short questions, then a list of real offices.
This post covers how the finder holds its answers, how they turn into a search and how the database ranks the results. Then it runs a real brief through it.
Seven steps, all in the URL
The finder asks about the feel of the space, the type of space and the number of desks. Then it asks what matters most, where and when. The last step asks who to send the shortlist to. Every answer is written into the address bar as soon as it changes:
useEffect(() => {
const params = new URLSearchParams();
params.set('step', currentStep.toString());
if (workspaceStyle) params.set('style', workspaceStyle);
selectedSpaceTypes.forEach((t) => params.append('spaceType', t));
if (teamSize) params.set('teamSize', teamSize);
priorities.forEach((p) => params.append('priority', p));
// ...location, lat and lng, timeline and amenity labels the same way
setSearchParams(params, { replace: true });
}, [currentStep, workspaceStyle, selectedSpaceTypes, teamSize, priorities /* ... */]);
That one effect buys a lot. Refresh and nothing is lost. The back button works. You can send a half finished brief to a colleague as a link. Using replace: true keeps each tap out of the browser history, so back takes you out of the finder rather than through every click.
From answers to a search
Not every answer filters. Style, priorities and timing travel with the brief, because they help a person shortlist but don't map cleanly to a column. Location, space type, desks and must have amenities become the search (simplified):
const buildSearchParams = () => {
const params = new URLSearchParams();
if (location) params.set('location', location);
if (locationCoords) {
params.set('lat', locationCoords.lat.toString());
params.set('lng', locationCoords.lng.toString());
}
selectedSpaceTypes.forEach((type) => params.append('spaceType', type));
if (teamSize) params.set('availableSpaces', teamSize);
amenities
.filter((a) => selectedAmenityLabels.includes(a.key))
.forEach((a) => params.append('amenity', String(a.id)));
return params;
};
The finder then hands over to the normal search page with those parameters. There's no separate matching engine to keep in step. The finder is a friendlier way to fill in the same search everyone else uses.
How Postgres ranks the results
The search is one Postgres function. Amenities are the interesting part. An office needs at least one of your must haves to appear at all. It then ranks by how many of them it has, then by how close it is to your pin (simplified):
WITH amen AS (
SELECT oa.office_id AS id, count(DISTINCT oa.amenity_id) AS matched
FROM office_amenities oa
WHERE oa.amenity_id = ANY(amenity_ids)
GROUP BY oa.office_id
)
SELECT ...
FROM offices m
LEFT JOIN amen a ON a.id = m.id
WHERE m.isapproved
AND (NOT has_amenities OR a.id IS NOT NULL)
ORDER BY
a.matched / n_amenities DESC, -- share of your must haves
(m.latitude - center_lat) ^ 2 + (m.longitude - center_lng) ^ 2; -- then distance
Ranking by share rather than filtering by "has all of them" means a thin area still shows you something useful, with the closest matches at the top.
A real brief
Here's a brief I ran on 3 December 2026:
- A creative studio of eight people wants a private office.
- They want to be near Old Street and move within one to three months.
- Location, flexible terms and wellbeing matter most.
- Their must haves are bike storage, phone booths and showers with changing rooms.
That brief becomes this search, which you can open yourself: private offices for 6 to 10 near Old Street with bike storage, showers and phone booths.
These were the first eight results that afternoon. Every one of them lists all three must haves:
| Building | Operator | Price listed | Team sizes in available offices | Nearest station |
|---|---|---|---|---|
| White Collar Factory | FORA | Β£450 per desk a month | 1 to 26 | Old Street, 2 min walk |
| Unity Working Shoreditch | Unity Working | Β£550 per desk a month | 1 to 10 | Old Street, 5 min walk |
| Unity Working Moorgate | Unity Working | Β£550 per desk a month | 4 to 8 | Moorgate, 3 min walk |
| The Rutherford | Boutique | Β£4,500 per office a month | 8 to 22 | Old Street, 8 min walk |
| 20 Garrett Street | BE Offices | Β£550 per desk a month | 4 to 12 | Old Street, 8 min walk |
| Great Eastern Street | FORA | from Β£2,968 per office a month | 1 to 164 | Shoreditch High Street, 6 min walk |
| The Old St WorkRooms | Purpose Group | Β£2,060 per office a month | 6 to 10 | Old Street, 7 min walk |
| 50 Liverpool Street (marked Featured) | FORA | from Β£2,202 per office a month | 1 to 20 | Liverpool Street, 1 min walk |
For context, the spacebly Price Index put the median asking price in Shoreditch and Old Street at Β£494 a desk a month for December 2026, from 51 buildings. The London median was Β£450. Each result card also shows a cashback estimate, worked out with the same 3% rule and Β£250 minimum as the cashback calculator. For more offices around the same streets there are pages for Old Street and Shoreditch High Street.
Something I'd fix
Look at rows three and four. Unity Working Moorgate is 566 metres away and The Rutherford is 487, yet Moorgate ranks first. The cards show true distance in metres, but the ranking compares raw degrees. In London a degree of longitude is only about 0.62 of a degree of latitude on the ground, so an office due east or west looks further away than it is. The fix is to scale the longitude difference by the cosine of the latitude before squaring. It's a small change. It's on my list.
What worked
Keeping the finder as a front door to the normal search was the right call. There's one ranking to tune and one set of results to trust. Putting the whole state in the URL made the seven steps feel light, because nothing is ever lost.
If you want to try it, the 3 Minute Office Finder is here. We also wrote about getting to a shortlist before the kettle boils for non technical readers. If your team lives all over the city, the Team Location Finder helps you pick the area first.
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.