FlowsBook a callSign inCreate free accountSign up
Roads and traffic

A marathon road closures map that redraws itself on race day

Draw the course once, then get a live map of closures and roadworks along it, refreshed through race morning, with a short note for staff, drivers or guests.

Part of the guide Location intelligence automation

By the xMap team · · 5 min read

A marathon road closures map is most useful when it is live: the course drawn once, then the closures, roadworks and incidents along it found again every 15 or 30 minutes through race morning and put on one shared map, with a short written note of what changed. Official closure plans are published days ahead, but the roads on the day rarely match the plan exactly. A map that redraws from what is showing on online maps right now catches the late barrier, the extra diversion and the crash on the detour.

This is for the people around a race rather than the runners: event and security teams, hotels and cafes on the route, delivery and taxi firms, hospitals and care services that still have to move, and anyone whose staff need to get in that morning. It covers what goes on the map, how to draw the course so the search fits it, a made-up race morning, the limits of the data, and how to set the whole thing up as an AI employee.

What goes on the map

The Traffic incidents block reads road closures, roadworks and other incidents from online maps, live, inside the area you give it. Each one comes back as a row with its kind, its street and district, its position to about 150 metres and the small icon the map uses. The Show on a map block then draws them, and every run can update the same map rather than starting a new one, so one link always shows the latest picture.

Add live road speeds where it helps. The Traffic Flow block, set to a list of the crossing points people will try to use, gives each point its current speed, how jammed it is and whether a stretch nearby is closed. That answers the question everyone asks on race morning: which crossing is still moving?

Drawing the course so the search fits

A marathon is long and thin, and a city-wide search wastes effort on suburbs nobody cares about that morning. Draw the area instead.

  • Draw the corridor. In the Area of interest block, draw a shape that follows the course with a margin of a few streets on each side, where diversions spill over.
  • Or drop points. Put a point at the start, the finish, each crossing and each water station, with one distance around each. Points are quicker to draw and keep the search tight.
  • Keep it in parts. A large drawn area is searched in parts of about 24 km, centre first, up to eight a run. A 42 km course with a margin fits; a whole metropolitan region does not, and the step says when an area was only partly covered.

A made-up race morning in Rotterdam

This timeline is invented. A spring marathon starts at 10:00 near the centre of Rotterdam. A courier firm with a depot on the far side of the river needs vans across a bridge on the course before it shuts, and a hotel on the route wants to tell guests when they can leave by taxi.

  1. The day before, a run at 18:00 shows the planned barriers already marked around the start and two roadworks on a diversion route. The courier moves its early vans to the other bridge.
  2. From 06:00 the flow runs every 15 minutes. At 07:15 a new closure appears on a street the plan did not list; the map shows it and the note names it.
  3. At 09:40 the crossing points by the course show standstill on one and light traffic on another. The hotel's front desk tells guests to use the light one.
  4. In the early afternoon the closures near the start disappear from the map one by one, and the note says which streets have reopened.

Nobody watched a screen all morning. The map updated, and the people who needed a sentence got one.

What the data can and cannot show

Be honest with the people reading the map about where it comes from.

  • A closure appears once it shows on online maps. A barrier put up five minutes ago may not be there yet, and a closure lifted early may linger for a while.
  • Accidents come back as road closures for now, and a kind with no icon comes back as Incident.
  • Positions are to about 150 metres, which is right for a street and too coarse for a single lane.
  • Live speeds measure how traffic moves, not how many cars are queuing. They are a guide to which way is open, not a count.

Writing the note people read

A map is good for a control room and poor for a driver at a red light. Add an xMap LLM block that reads the incidents and the crossing speeds and writes three or four short lines: what is closed now that was open at the last check, what reopened, which crossing to use. Send it by email, to a team chat or to a WhatsApp group, and keep the map link at the bottom for anyone who wants the detail.

Keep the note to what changed. A full list every 15 minutes trains people to stop reading it.

Set it up as an AI employee

The whole morning runs on its own once it is built, and it can be reused for the next race or a different city by changing the drawn area.

  1. A Schedule every 15 minutes, with active hours from early morning to mid-afternoon on race day, plus a run the evening before.
  2. The Area of interest, drawn along the course or as points at the crossings.
  3. Traffic incidents on that area, and Traffic Flow on the list of crossing points.
  4. Show on a map, updating the same map each run, and share its link.
  5. xMap LLM for the short note, then Email or a chat app to the people who act on it.

Watching the roads around your own sites on ordinary days works the same way; the guide to AI employees for field operations shows the everyday versions, from depots to construction sites.

Questions

Does the map show the official closure plan?

It shows what online maps show right now: closures, roadworks and incidents as they appear. Keep the organiser's plan to hand, and use the live map to catch what changed from it.

How often should it refresh on race morning?

Every 15 minutes covers most needs; every 5 minutes is possible for a control room. Use active hours so it only runs on the morning that matters.

Can I share the map with people outside my team?

Yes. A saved map can be shared as a public link, so guests, drivers or partners open the latest version without an account.

Will it work for a cycling race or a parade?

Yes. Draw the route or drop points along it the same way; anything that closes roads shows up the same way on the map.

Templates that do this

Read next

More on roads and traffic · Every article · Templates

Put it to work

An AI employee in xMap Flows does this on live data, on its own timetable. Start from a template or describe it in plain words.