I am using the explorer edition of the Here Routes SDK for Android. I am trying to add customizable polygons to a list of areas in which the route must avoid when being calculated.
I tried using avoidanceOptions.addAvoidArea(), but the method is not recognised and I cannot find documentation for it.
I have found avoidanceOptions.avoidAreas.add() in the documentation: "https://developer.here.com/documentation/android-sdk-explore/4.13.4.0/api_reference/com/here/sdk/routing/AvoidanceOptions.html#avoidAreas", but avoidAreas is a List. I need to use a GeoPolygon as I cannot be limited to rectangles.
Has the feature of avoiding polygons been removed and is there perhaps a different way to accomplish this task?
I did intially try to use avoidanceOptions.avoidAreas.add() using a GeoPolygon, but that did not work as it was expecting a GeoBox. I was expecting the polygon to be added to the list of areas to avoid when the route is calculated. I added this last paragraph because Stack Overflow was asking me to elaborate. I don't really know what else to say. This is my first question.