Determining suitable zoom level based on a set of locations on Google Map Android API v2

view full story

http://stackoverflow.com – I'm trying to find if there's an algorithm/method out there that can help determine a suitable zoom level for initial display. For example, given a set of locations Point A,B,C,D and E, how can I determine the correct zoom level that will display all locations on the screen? (HowTos)