Google Maps iOS SDK: Distance between east and west points on the map
问题 How can I calculate the distance (in meters) between the east point and the west point of the map? Suppose the user changed the position scrolling the map, then I catch the movement with mapView:didChangeCameraPosition: delegate method, but I don't know how to calculate the distance. 回答1: Here's a helper function which can be used to calculate the distance in metres between two coordinates: double getDistanceMetresBetweenLocationCoordinates( CLLocationCoordinate2D coord1,