GoogleMaps Framework Reference

GMSGeometryDistance

extern CLLocationDistance GMSGeometryDistance(CLLocationCoordinate2D from,
                                              CLLocationCoordinate2D to)

Returns the great circle distance between two coordinates, in meters, on Earth.

This is the shortest distance between the two coordinates on the sphere.

Both coordinates must be valid.