Finding if a given position (lat, lon) is within the BoundingBox of two coordinates (route-me)
问题 I am working on an iPhone app using the Route-Me project. I am using a method called 'latitudeLongitudeBoundingBoxForScreen' which returns a set of two cooördinates. Defining the Northeast and Southwest corners in lat/lon of your screen. This seems to work fine. My question is how can I determine whether a given point (lat/lon) is within the boundaries of these two coordinates (northeast,southwest)? Thank you very much in advance for your help. 回答1: For general point in a polygon, the Point