I have Array of GMSPath
and have Coordinate. I want to find out Path in which this Coordinate falls. I am able to find out total polygons in which this location falls. (Using this https://stackoverflow.com/a/38826411/2225439) Everything is working fine up to this step.
The Actual issue comes when One closed GMSPath
overlap with another Closed GMSPath
and Coordinate is in overlapped area. As per my requirement, I have to get only one GMSPath
out of these two and which have the smaller area than another.
Please refer Image for better understanding.