Skip to content

Custom development · Open source

Málaga Marathon traffic closure map: which streets are closed at each hour

You move the time and the map shows the streets closed at that moment, the race course and where you cannot park.

I first built it for the Generali Maratón de Málaga 2026 and published the code as open source, so it can be used for other events.

Map of the Málaga Marathon at 10:30, with 60 closed streets coloured by time slot and the legend of the slots

From a list of streets to a map

The closures for the marathon were announced in a notice from the city council: a list of streets, each with its closure times.

The map draws those streets in colour by time slot, so you can see at a glance what is closed at each hour.

Data checked before publishing

The shape of each street comes from OpenStreetMap, looked up by its name. If a street is not found, the tool says so and never makes up a line. Partial or uncertain closures are flagged on the map instead of being assumed.

A validator checks the data: time slots that do not exist, repeated colours, links without https, street lines outside the map bounds or missing translations. If it finds an error, the page is not built.

What the map shows

A time slider

Move the time, or press “Now”, and the map shows the streets closed at that moment.

Each street with its hours

Streets are coloured by closure time slot. Tap one to see its hours and notes.

Parking and the course

Streets where you cannot park, car parks with restricted access, and the race course.

Latest updates

A block with last-minute changes that can be updated during the event without publishing the page again.

On any phone

It works on phones, in Spanish and English, with no cookies and no analytics.

The Málaga Marathon map

The race took place on 8 November 2026. This screenshot has the same framing as the one above, three hours later.

At 13:30. 21 streets are still closed. The ones already reopened turn into a dotted course line.

Screenshots of the published map, which carries the Tomatic brand.

The Málaga Marathon map at 13:30, with 21 streets still closed and the reopened ones shown as a dotted course

Open source, for any event

Everything the map shows comes from a few JSON files. You can edit them by hand, or prepare them with an AI agent from the official notice.

The code is published under the Apache 2.0 licence. It works for any event with road closures: a marathon, a parade, a cycling race or a festival.

The map on a phone at 10:30, with the closure hours of Avenida de Andalucía

A static page

The map is a static page published on Firebase Hosting. It only needs Node 22, with no framework and no dependencies to install.

It has a strict content security policy. An automated test opens the page in Chrome at desktop and phone size, and fails if there are errors or if the map comes out empty.

With the brand and languages of each event

The logo, colours, typeface, title and call to action come from a branding file. The page supports as many languages as needed, with Spanish and English built in, and picks the browser’s language.

Do you have an event with road closures?

Tell me about the event and what information you have. I will tell you whether it is a fit and what a first version could include.

Tell me about your project

See the published map

The first video call is free and lasts one hour.

Let's talk about your team

You can book a call or send me a message.

Book a 30-minute call Opens Google Calendar in a new tab. 30 minutes.

Or send me a message