In my iPad application i am drawing one rectangle on map using overlay.
I have lat/long of one edge as well as length and width of rectangle.
I have some other lat/longs coming from database.
Now how can i get which lat-long from database is inside rectangle?
Thanks,
Solved.
first of all convert four latlons to point using this method :
CGPoint point = [mapView convertCoordinate:location toPointToView:overlayView];
then you have to apply method of point in poly.