How to fit a certain bounds consisting of NE and SW coordinates into the visible map view?
I need to fit a certain bounds within a map. I get the bounds from calling the google geocoder and reading the viewport property which looks like: { northeast = { lat = "30.4212235"; lng = "-97.486942"; }; southwest = { lat = "30.1128403"; lng = "-97.99917959999999"; }; } I then convert these into CLLocationCoordinate2D NSDictionary *viewport = [[[results objectAtIndex:0] objectForKey:@"geometry"] objectForKey:@"viewport"]; NSDictionary *NEDictionary = [viewport objectForKey:@"northeast"]; NSDictionary *SWDictionary = [viewport objectForKey:@"southwest"]; CLLocationCoordinate2D SWCoordinate =