Find nearest point on a MKPolygon from a CLLocationCoordinate2D

504 views Asked by At

I have a series of coordinates which forms a MKPolygon. I have another coordinate say user location. Now I need to find the nearest point from the user location to the polygon to show the shortest distance from the user location to polygon. In my observations, there is no direct way to achieve this. Could some one help me find a solution for this in swift for iOS?

0

There are 0 answers