I am using the MapBox SDK. I have ran into an issue. I am trying to create a path that avoids certain areas, which are denoted as Polygons on the map. I want to check if my LineString will intersect a Polygon. I have seen there is a method outer() which gives me the perimeter of the Polygon as a LineString, however I am not sure how to proceed.
I need to find a way to give me a boolean whether or not my LineString path will intersect the perimeter, meaning I will be able to find an alternative route.
Any help is appreciated.