Hello, I was testing routing api but couldn’t figure out how avoidAreas work.
The generated route goes directly into the rectangle it should’ve avoided. Also, I couldn’t find any examples/documentation related to avoidAreas.
https://api.tomtom.com/routing/1/calculateRoute/39.922304,32.89966:39.92338,32.900221:39.923095,32.900355:39.923157,32.900412/json?routeType=shortest&travelMode=truck
{
"avoidAreas": {
"rectangles": [
{
"northEastCorner": {
"latitude": 39.92325734262445,
"longitude": 32.89954968942823
},
"southWestCorner": {
"latitude": 39.922172211908446,
"longitude": 32.89940674553844
}
}
]
}
}