Calculate a route with no-through restrictions
- Last UpdatedApr 4, 2025
- 2 minute read
The term "no-through restricted area" refers to an area of the road network where through-traffic is not allowed. Information about no-through areas that occur on the route can be requested using the request parameter return=noThroughRestrictions
. Spans can additionally be requested to show where exactly those areas occur on the route, using the request parameter spans=noThroughRestrictions
. Note that the returned spans only indicate the presence of a restriction. They don't indicate that the restriction has been violated.
In this sample request, the vehicle in the request is an 8 t truck. The most direct route between origin and destination would go through an area with a no-through restriction for vehicles over 7.5 t. The router therefore avoids that area, instead taking a longer detour.

In this next example, the previous request has been modified so that the destination is now inside the no-through restricted area. The router no longer needs to avoid the restricted area, because the request asks to make a stop in the area, not to go through it. The response contains a noThroughRestriction
containing the restriction details.

For restrictions on route sample requests, see these tutorials: