How can I specify a zone of locations using longitude and latitude 开发者_StackOverflow社区using Objective-C?
So, from your comments...a semi-circle? You could specify that using a radius and degree value indicating the bearing of the line that bisects the circle.
To test whether a point is in the zone, you would test in two parts:
- Is the distance between the two points smaller than the radius?
- Is the bearing of the point to the origin within the specified 180 degrees of the semi-circle?
That's about as well as I can figure it without some more detail.
精彩评论