Every road needs an owner and live rules

Imagine every road and its features becoming programmable, and the entire network making decisions with knowledge of itself.

Curiosity

← Curiosity

Imagine every road in a city exists twice. Once in the physical world, and once in a digital world where software can see and change the things on it.

A lane knows its direction, speed limit and whether it is open. A curb knows what it is being used for. A crossing knows when people are waiting. Each has its own identity and a set of things that can be changed about it.

Now imagine that all the roads are connected in this digital world. A road can find out what is happening on the roads around it. The city can consider the consequences of changing one before it changes another.

What would such a city do differently? That’s the thought experiment.

The same street at different times

There is no reason for a piece of street to serve the same purpose throughout the day. A few metres of curb could be a loading area in the morning, a place for parents to pick up their children in the afternoon, and parking in the evening. The lane next to it has its own rules. The crossing has another set. All of them occupy roughly the same bit of the city, but they don’t have to change together.

In the illustration below, the street itself stays the same. Move through the day and look at the four parts of it. Each has an address and a value that can change independently.

The street becomes something whose behaviour can change without changing its physical shape. And because each feature is connected to the others, a change no longer has to be considered in isolation.

Imagine that the school finishes early one afternoon. The city could make room for parents at the curb, allow more time for children to cross, and redirect some through traffic before the school gates even open.

A lot of this exists already

When I looked into this, I realised how much of the groundwork had been done.

England has a digital traffic regulation order service. It gives traffic authorities a way to share road regulations in a form that software can read. The DATEX II traffic regulation model goes further and describes dynamic restrictions and traffic management.

There is even a standard for the curb. The Open Mobility Foundation’s Curb Data Specification includes ways to publish curb locations and regulations, exchange information about their use, and support dynamic curb management. What I described above about the loading area and parking space is not a new idea in itself.

Other parts of the street have their own systems:

  • SPaT communicates traffic signal states and timing.
  • WZDx lets road authorities share information about roadworks.
  • Cooperative intelligent transport systems can send road signs and hazard warnings to connected vehicles.
  • Waze for Cities exchanges closures and incident information with cities.
  • GPS traces can help map companies discover new roads.

There is also European legislation requiring specified road data to be made available in standard, machine-readable formats.

Digital road rules, dynamic speed limits and ambulance priority are not the inventions in this story. Neither is traffic optimisation. Versions of these ideas already exist. Imagine instead that the whole road network has reached the point where its features can be understood and changed together, wherever it is safe and lawful to do so.

What would a city know about itself?

Suppose two roads lead to the same destination. One is a narrow street with a school on it. The other is longer but has more room. Each person naturally chooses whichever route seems fastest. The problem is that every additional car changes the answer for everyone behind it.

A connected city could consider the journeys together. It could see that sending a few more people along the longer road would reduce the total time spent travelling. It might even decide that some of that time is worth sacrificing to keep traffic away from the school.

Now take that idea beyond route recommendations. The city could see a stadium about to empty, know which bus routes will be affected, make space for extra buses where the road permits it, change the signal plans, and arrange access for emergency vehicles. It could evaluate those decisions together, including the effects on surrounding streets, rather than asking each system to solve its own problem.

There is an important difference between a road reacting to an event and an entire network anticipating how that event will affect it. A junction can look efficient by sending cars through quickly while filling the next junction with traffic. A connected network can see that the apparent improvement is not an improvement at all.

What would it mean to program a street?

Imagine that a municipality has given every relevant part of its road network an address. For illustration, here are four addresses on our little street.

AddressPropertyWhat can change
018/E1Maximum speed50, 30, 20 km/h
018/E2Lane accessOpen or restricted
018/C1Curb useParking, loading, pickup
018/J1Traffic signalA request for priority

In practice these would refer to actual geometry, direction of travel, and a version of the road layout. A name alone isn’t enough: a rule applying to the wrong lane can be dangerous.

A program for the school might look something like this:

program: school-arrival
valid: school-days, 07:45–08:30
features:
  018/E1:
    max_speed: 30
  018/C1:
    use: pickup

This is a sketch of the interface I have in mind, not an existing standard. The school would need permission for each of these operations, and the city would have to approve the program before it ran. The interactive street above uses a separate approved curb schedule, rather than this hypothetical school program.

The useful thing about describing a program this way is that it says what we want the street to be like. It leaves the details of how to change the signs, notify drivers and manage the traffic controllers to the infrastructure beneath it.

A school across town could use the same kind of program with different addresses and times. A street market could use the curb and access capabilities. A utility company could use them during repairs. Because these programs affect the same shared environment, their effects could be considered together before they take effect.

Who owns the features?

There is a catch. A computer can change a thousand values in a second. The city needs to know which of those changes a person was actually allowed to make.

I use the word owner to mean the public authority responsible for a feature, or an operator acting under its authority. The road remains public. Ownership here is about responsibility for the digital resource.

The authority could issue a signed grant for a particular feature, a particular operation and a particular period of time. The school may be allowed to lower the limit near its entrance, but that permission doesn’t let it change a signal. A maintenance crew may be allowed to close a lane, but not arbitrarily raise the speed limit elsewhere.

We can then let different programs run on the same street without letting any of them take over the whole street.

Try enabling the school and roadworks together below. Both programs ask for a speed limit. Now enable an ambulance request while the exit is blocked, or let the school try to change the traffic light. The decisions are computed from the inputs, including a check for whether the physical controls have been confirmed.

The interesting part is what happens between the programs and the street. We need rules for combining their requests. Two speed limits might combine by taking the lower one. A closure cannot be undone just because some other program requests access. Two incompatible uses of the same curb would need a different way to settle the conflict. A signal request must go to the signal controller, which has its own safety constraints.

There is no single rule such as “the highest priority wins” that works for everything. Each kind of feature has to define what it means to combine changes safely.

Overlapping permissions on a street — original animation

The difference between knowing and doing

This is where the existing technology is useful. We have ways of sending messages to vehicles, controllers and roadside devices. We have digital traffic orders and information about roadworks. We can use those systems to carry the result of the programs.

I’d keep a distinction between the configuration we want and what is actually happening on the street. Say a program requests a lane closure. The request can be valid and authorised, but the cones might not yet have been placed. The city shouldn’t publish the new state as if the physical work had already happened.

Conversely, the cones might be in place while a digital update has failed. The closure is still there, and people must obey it. The software needs to flag the disagreement and not pretend it has reconciled the two.

In software we deal with similar problems whenever we manage physical infrastructure. We keep track of the state we asked for, observe what happened, and decide whether the change has actually been applied. On a road, the consequences of getting this wrong are much more serious.

A roadworks permit meets an observation from a vehicle — original animation

That also changes how I’d handle information from cars. If a truck stops in a lane, reports from passing vehicles and a camera can provide evidence. They shouldn’t acquire permission to close a road just by agreeing with one another. An authorised incident program can use those reports to raise an advisory or request a restriction under pre-approved conditions. Only the authority’s process can make it effective, and the restriction shouldn’t be removed merely because the reports stop coming in.

Observations trigger a pre-authorised incident rule — original animation

An ambulance is a city-wide problem

An ambulance is a useful example because emergency priority is already widely used. I wouldn’t invent a new method for making a light green.

I would give an authorised emergency service a way to request the priority capabilities of the junctions along its route. Those capabilities would be discoverable through the same resource model. The local controllers would still decide when to accept the requests. They wouldn’t interrupt a pedestrian’s safe crossing or send the ambulance into a blocked junction.

An emergency request passes through the city's signal controllers — original animation

If the whole network understands its own condition, it might choose a different route for the ambulance before requesting priority. It could consider congestion, closures, pedestrian crossings, bus movements and the capacity of the roads ahead. It might hold traffic farther upstream to prevent a queue forming where the ambulance is about to pass.

Giving one junction a green light is already possible. The interesting question is what becomes possible when the entire journey can be considered as one decision.

The road changes underneath the program

Cities build roads, split lanes, move crossings and remove parking spaces. A digital street can’t be a set of permanent coordinates that we forget about.

I’d give each resource a versioned identity. If a lane is moved or removed, its old identity needs to be retired or explicitly mapped to the new one. Programs referring to an obsolete feature must be checked before they can run again.

GPS observations can help discover a new road. They can’t establish who owns it, whether it is public, or which operations are safe to expose. The road authority needs to verify and register it first.

A discovered road becomes a registered resource — original animation

The same idea applies when a car loses its connection. It cannot assume that an earlier closure disappeared because no update arrived. It should retain the applicable verified restriction, respect the physical signs, and recognise that it has incomplete information about the road ahead. A hazard that appears after it disconnects may be invisible to it digitally.

A vehicle retains an earlier restriction when disconnected — original animation

People driving old cars must be able to use the road safely too. A programmable street still needs physical signs, signals, barriers and the other legally required controls. Changing its digital representation isn’t a substitute for changing the road itself.

What should the city optimise for?

We could tell it to minimise the time people spend travelling. But consider a residential street that happens to be a useful shortcut. A system concerned only with travel time might send thousands of cars past people’s homes. It could be doing exactly what we asked of it while making the city a worse place to live.

A city needs to decide what it cares about: safety, access, quieter neighbourhoods, reliable public transport, emergency response, air quality and time. Some things are hard limits, like a safe pedestrian crossing. Other things involve trade-offs. And not all the people affected by those decisions are travelling in cars.

Once the network can see its own state, it could compare possible changes against those goals, observe their consequences and reconsider when they turn out differently than expected. It would still have incomplete information. Weather changes, people behave unexpectedly, and a prediction can be wrong. Public authorities would still have to set the limits of what it can decide.

Think of a city on an ordinary Tuesday morning. Schools are opening, buses are late, a truck has broken down and rain is beginning to fall. These things are happening at the same time, on roads that affect one another.

Today, many of the decisions about them are made separately. In the world we’ve been imagining, the city could consider them together. It could give a road a different purpose for an hour, move traffic somewhere with spare capacity, and revise those decisions as the morning unfolds.

The city would no longer be a collection of roads waiting for people to tell each one what to do. It could understand how changing one road changes the rest of the city, and use that understanding to make better decisions for the people living in it.