How does ios mapbox get a middle point between two points

Using the mapbox ios SDK framework, how to calculate the center coordinate between two points given latitude and longitude coordinates?