Avoiding Specific Roads and Areas
When planning a route, most drivers want to avoid areas of congestion such as roadworks or areas that are cordoned off for special events. You can implement the Routing API so that drivers can easily define roads and areas to avoid.
Consider the following example:
avoidareas parameter contains two sets of coordinates. These coordinates define a rectangular area around the Deutsche Guggenheim museum. When the route is calculated, the Routing API ensures that the route does not go through this area.
For more information, see Requesting a Route Avoiding an Area