I am developing iOS application including GoogleMaps. And implementation process of GoogleMaps SDK for iOS was completed yet.
But I want to know how to calculate GMSCamera zoom for showing whole route on Map.
In Apple Map, we use span, maybe. But GoogleMaps SDK doesn't have span.
Please give me advice.
Actually in the current version of the SDK you can use fitBounds:
GMSCoordinateBounds *bounds = [[GMSCoordinateBounds alloc] initWithPath:yourPath];
//There are several useful init methods for the GMSCoordinateBounds!
GMSCameraUpdate *update = [GMSCameraUpdate fitBounds:bounds];
[mapView_ moveCamera:update];
This way you let the math to Google, and I'm pretty sure they are really good at it.