Avoid areas

The avoid[areas] parameter can be used to avoid areas specified by one or more rectangular boxes. For example, the following requests avoids going through an area in the Tiergarten park:

curl -X GET \
  'https://router.hereapi.com/v8/routes?origin=52.522297,13.353296&destination=52.508309,13.355633&transportMode=car&avoid[areas]=bbox:13.37588,52.51061,13.34226,52.51892&apikey={YOUR_API_KEY}'
avoid areas
Figure 1. avoid areas

The resulting route takes a detour in order to avoid the specified area.

results matching ""

    No results matching ""