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 v7 so that drivers can easily define roads and areas to avoid.
Consider the following example:
&avoidareas=52.517100760,13.3905424488;52.5169701849,13.391808451
The 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 v7 ensures that the route does not go through this area.
For more information, see Requesting a Route Avoiding an Area