I need some help coming up with an algorithm to determine the minimum bounding rectangle around a set of lat/lon coordinates. It is OK to assume a flat earth since the coordinates will not be too far apart. Pseudocode is OK, but if someone has done this in objective-C, that would be even better. What I am trying to do is set the zoom level of a map based on the number of points that will be displayed on the map.
Thanks, Matthew